sponsor Vim development Vim logo Vim Book Ad

visual-search : Search for or only within visual selection

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

created by
Yarin Licht
script type
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:

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.
OSDN.net Logo