Last Updated: February 25, 2016
·
623
· laplacesdemon

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.

2 Responses
Add your response

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 ·