LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help vi edit (https://www.linuxquestions.org/questions/linux-newbie-8/help-vi-edit-216970/)

tomamodi 08-12-2004 10:59 PM

help vi edit
 
hi
please help
i am using vi for squid.conf
and at tag cache_peer
i accidentally press some key and that tag cache_peer become red
how i clear this red color
thanks

shubb 08-13-2004 01:36 AM

Is that the only part of the file that is red? I'm guessing that you have syntax highlighting turned on, which makes different keywords or text types show up in different color.

Did you put a quotation mark before the line? Usually red text means it is enclosed by quotation marks "".

If you want to turn off the colors alltogether, try typing "syntax off" in the command mode (after pressing : ). You can also edit the .vimrc file in your home directory, and find the part where it says syntax on, and change it to syntax off. That will make it stay that way.


All times are GMT -5. The time now is 03:57 PM.