After searching in Vim with
/ all occurences highlighted and this stays for a while. It may be a unwanted or even annoying thing. There are many methods to disable it;
To turn off highlight until next search, in
If you want to disable it completely:
Put this in your
" disable search highlight set nohlsearch
I personally use 'temporarily disable' with key mapping. I mapped
<esc> key. Since hitting
<esc> is a very common and intuitive situtation in Vim.
" noh - no highlight map <esc> :noh <CR>
You can also map
nohlsearch to a key for toggling.