Just found the right way of removing highlighting in VIM after search. Before this I usually just entered another senseless search criteria (which is for sure doesn't exist in the text). What I really liked in the found solution is additional keymapping for such a frequent action.
The command which removes highlighting of the last search is :nohlsearch or it's abbreviation :noh
It can be mapped, for example, to Ctrl-N combination by adding the following line to the .vimrc:nmap <silent> <C-N> :silent noh<CR>
A bit about
Hello, everyone! All you can see below is just my bank of information. Some material I've found in the fathomless net, some I've learned myself. Don't think all of the information here is right or actual, but may be it could be of use for you :) All feedback is welcome, especially constructive ones :)
Sunday, January 17, 2010
VIM: remove highlighting after search
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment