Vim Tips Wiki
Advertisement

Previous TipNext Tip

Tip: #486 - Search for current word without moving

Created: June 16, 2003 3:28 Complexity: basic Author: Jakob Frandsen Version: 5.7 Karma: 9/8 Imported from: Tip#486

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.

Comments

Advertisement