A specific word always gets highlighted automatically

So i am pretty new to vim, and by mistakenly i mispressed something and when i type the word “'when” it automatically gets highlighted. It doesnt happen with any other word

The word ‘when’ is currently in the search buffer, that happens when you type forward-slash (/) and enter a text. In this case you typed:

/when

An official way to clear the search highlight is by typing:

:noh

As a lazy alternative, you can also do a quick new search for a random text that won’t show up:

/zzz
1 Like