Wednesday, June 30, 2010

Analog to SHIFT+Asterisk

Esteemed Vim Users,

One of the useful key combinations in vim is shift+asterisk, which
will locate the word your cursor is "on", and put that word into your
"/ buffer (surrounded by \<\> word boundaries). This has the effect of
highlighting all occurrences of that word.

It also has the effect of jumping the cursor to the next instance of
that word in your buffer.

Is there an analogous key combination, that will highlight the current
word, WITHOUT moving my cursor?

Thanks,

Todd

(I know I can just shift+N afterwards, to get back where I was.
Something more elegant?)

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment