Highlight occurrences of a word in Vim
Pretty simple, just hit *
when you're on a word in normal mode. Vim will highlight all the occurrences.
In addition, make sure that :set hlsearch
is set.
Written by Suleyman Melikoglu
Related protips
2 Responses
And followed by # to come back to the word you where on.
then you can map *#
to something to say higlight the occurences.
over 1 year ago
·
Thanks for :set hlsearch
@gahtune awesome hint about #
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#