LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vi editor question (https://www.linuxquestions.org/questions/linux-software-2/vi-editor-question-95426/)

lpriyamb 09-22-2003 05:14 AM

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....

BigNate 09-22-2003 05:37 AM

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?

koyi 09-22-2003 11:29 AM

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 :) )

kev82 09-22-2003 11:55 AM

:set nohlsearch

oskernel 09-23-2003 01:22 AM

mark


All times are GMT -5. The time now is 01:51 PM.