one of the best feature i have in eclipse is this one:
if i select (with double click) a word that is a variable name all occurences in the scope are evidenced. and, also, in they are evidenced with a little white rectangle in the scrollbar.
for example with this code:
static void foo() {
int a=0;
cout << a << endl;
}
static void foo1() {
int a=1;
cout << a << endl;
}
and i select the a in foo(), a in foo1 is not evidenced.
what is the name of this feature? there is something similar in vim?
thanks.
I think this is called “Highlight occurrences”.
In VIM, you can have something similar by activating
hlsearch.Then just perform a search using
/. If you want this to permanent, add it to your .vimrc file.In normal mode, if you press
*it will search for the next occurrence of the current word and will highlight the matches ifhlsearchis set.