If you run vim with search-highlighting enabled (
set hlsearch), there'll be times when you've found what you're looking for and want to switch highlighting back off. Chances are you do something like
/asdf to force a failed match. Most of us do. But if that's so, why not try this more elegant approach:
Add this to your
nnoremap <silent> <Leader>/ :nohlsearch<CR>
...then you can type
<Leader>/ to kill the current search. By default,
<Leader> is mapped to backslash, so
\/ kills the search.
:nohlsearch switches search-highlighting off until the next time you search.
nnoremap maps that command to
:help <Leader> and
:help nohlsearch for more.