Saturday, March 29, 2014

Re: how can I configure word highlighting in VIM ?

On Sun, Mar 30, 2014 at 11:56:50AM +0530, Arup Rakshit wrote:
> I found this feature, long back in Notepad++. In that editor, if you select
> any word, it will highlight all occurrence of that word. It sometime helps
> to verify if at the line# 100 any variable I am using, it will confirm, if
> that was defined previously or not.

you did not respond to John's question: you know about "*"?, and your
re-query implies you don't

if you navigate to the word you want highlighted, press * , that word
will be searched for, and by virtue of its now being in the @/ register,
all occurrences of that word will now by default be highlighted, and you
can re-search with n and N

--
_|_ _ __|_|_ ._ o|
|_(_)(_)|_| ||_)||<
|

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment