When I do search in gVim (package gnome-vim), the search results are highlighted. How can I turn-off this highlighting when I don't need it any longer? Now it looks like persistent.
You can disable search results highlighting by command
:nohl. If you want to have this command under one keystroke, put the following lines into your
~/.vimrc configuration file:
" press F8 to turn the search results highlight off noremap <F8> :nohl<CR> inoremap <F8> <C-o>:nohl<CR>
Now you can press F8 to toggle search result highlighting on and off in both edit and insert mode.