sponsor Vim development Vim logo Vim Book Ad

subnetquicksearch.vim : Searches for a highlighted subnet

 script karma  Rating 0/0, Downloaded by 715  Comments, bugs, improvements  Vim wiki

created by
John Biederstedt
 
script type
utility
 
description
This script requires python 2.7 and the ipaddress module (pip install ipaddress).  Will build a regular expression to search for all ip addresses that fall within a subnet highlighted in text with the form X.X.X.X/X (an IPv4 CIDR format) after highlighting the text and pressing F10 (F10 is selected arbitrarily - just change that part of the script to use a different key).
 
install details
Make sure your vim can run python 2.7, install the ipaddress module (pip install ipaddress), then copy to your vim plugin directory
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
subnetquicksearch.vim .01 2017-07-21 7.4 John Biederstedt Initial upload
ip used for rating: 13.59.36.203

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github