How to Clear Word Highlighting in Vim

· 71 words · 1 min

Highlighting search results in vim is helpful. But after we have found what we are looking for, sometimes we want to remove the highlighting while we continue working.

Once we perform a search and find what we’re looking for, there are a couple of easy ways we can quickly turn off highlighting:

:nohlsearch

This turns off the highlighting until we do another search. We can also use the shortened version for the same effect:

:noh
Vim