1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 15:18:01 +00:00
Files
til/vim/turning-of-search-highlighting.md
2016-04-23 10:41:12 -05:00

433 B

Turning Off Search Highlighting

After performing a search for a common word, you end up with that word highlighted all over the place. To turn it off, I generally use the set command with no prepended to the hlsearch option -- as is convention in Vim.

It turns out though, that nohlsearch is a command in its own right. I can save a few characters by invoking:

:nohlsearch

See :h nohlsearch for more details.