> There is a feature I find useful in Netbeans: if you leave the mouse a
> few seconds on a variable, all variables with the same name will be
> highlighted. The equivalent of typing '*' over a word. Is there a way,
> in Vim, to have the same behaviour if the text cursor stays on a word
> for a few seconds?

Though I think it would annoy the bajeebers out of me, you can do 
it with something like:

   :au CursorHold * exec 'match IncSearch /'.expand("<cword>").'/'

You might want to tweak that to include word-boundaries:

     ...earch /\<'.expand('<cword>').'\>/'

with whatever the proper escaping of the "\" characters might be. 
  You can use 2match or 3match (or whatever), perform it for just 
certain file-specs (instead of "*") and change up the syntax 
group instead of IncSearch to whatever you like.

-tim





--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to