sponsor Vim development Vim logo Vim Book Ad

visual-search : Search for or only within visual selection

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

created by
Yarin Licht
 
script type
utility
 
description
By default, applying a search with Slash in visual mode moves the cursor, and the selection with it, this behavior is unintuitive at best and useless except in the rarest of circumstances.
So, we make search-forward search within the current selection, and search-backward search the whole buffer for the current selection.
 
install details
Copy to <runtimepath>/autoload/
 

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
visual-search.vim 1 2017-03-03 7.0 Yarin Licht Initial upload
ip used for rating: 35.170.81.33

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