[Vim] highlight a search or not, that is the question

As default, when you make a search, Vim highlight the result.
This option can sometimes be irritating, especialy when you search "=" or "," characters.

So, here is a line to put on your .vimrc (Vim default configuration file) :
noremap ‹F7› :set hls!‹cr›:set hls?‹cr›
So now, with the [F7] key you can highlight or not a search result. Usefull, isn't it?

No comments: