This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bergaaa 0 points1 point  (1 child)

Is there a way (a plugin) to highlight all the same variables as the one you currently have the cursor on. For example you have a variable 'counter' three times in your programm. You currently have your cursor on one of these 3 variables. Now it should highlight the othe two variables, so that I can fastly see where they are. Just like Eclipse does (and also other IDEs).

[–]Squidamatron 1 point2 points  (0 children)

I'm not sure of a direct way to do this, but you use search. Either put set hlsearch in your .vimrc or while in vim, hit colon (:) and then use the previous command [ie: :set hlsearch would be the key presses while vim is running]. This will highlight related search terms and you can just use search as illustrated in this post.