Quick VIM question (unhighlighting search terms after search)
When I do a search with /<pattern>, I can't get it to unhighlight the search term after the search. how do you do this?
thnx |
I mapped <F5> as a switch:
echo map \<F5\> :set hls\!\<bar\>set hls?\<CR\> >> ~/.vimrc |
thanks that worked, though is there a "normal" option to stop the search and get back to normal, like a built in command that works universally?
|
Hi,
Try this: :noh For more on this: :help noh Arvind |
yep works good thanks!
|
I use this in my ~/.vimrc to map disable highlighting to Ctrl+N:
Code:
nmap <silent> <C-N> :silent noh<CR> Håkan |
All times are GMT -5. The time now is 04:45 AM. |