sponsor Vim development Vim logo Vim Book Ad

basic Tip #486: Search for word under cursor, but don't move.

 tip karma   Rating 5/7, Viewed by 1088 

created:   June 16, 2003 3:28      complexity:   basic
author:   Jakob Frandsen      as of Vim:   5.7

This is very, very simple:

:noremap <F1> #*

I find this helpful when editing multiple files and I want to search for the word under the cursor in *another* file.
I then type F1, C-^, n.

 rate this tip  Life Changing Helpful Unfulfilling 

<<Open a new window and read in the man page for the word under the cursor | jump to a file to a certain line number >>

Additional Notes

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 [email protected] after searching the archive. Help Bram help Uganda.
Sponsored by Web Concept Group Inc. SourceForge Logo