Use The Star

The star is a great command, especially if you have the option hlsearch turned on in your .vimrc file.

It will move to the next use of the word under the cursor.

In doing so, it will highlight all uses of the word under the cursor.

*Move to next instance of word under cursor.
#Move to previous instance of word under cursor.

No comments:

Post a Comment