vi editor question
hello,
This is a very simple or may be a silly question. In vi editor when i search for a text using '/wordtobesearched', if the word is found it shows in brown color. And that is highlighted always. sometimes it is very irritating.... could anyone tell how to disable that? thanks.... |
Not sure about vi but the ViM FAQ's :
http://vimdoc.sourceforge.net/vimfaq.html note: 10.1. After I searched for a text with a pattern, all the matched text stays highlighted. How do I turn off the highlighting temporarily/permanently? |
I use a simpler approach myself. Try to search for a word that doesn't exist in the file and the highlights will go off. :D
My favourite is: /hahaha (You seldom find this in serious documents :) ) |
:set nohlsearch
|
mark
|
All times are GMT -5. The time now is 01:51 PM. |