Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-12-2004, 11:59 PM   #1
Registered: Jul 2003
Location: saudi arabia
Posts: 31

Rep: Reputation: 15
help vi edit

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
Old 08-13-2004, 02:36 AM   #2
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I edit runlevels? rwescoat Linux - General 4 10-02-2004 10:23 PM
Anything I can use to edit flash? webwolf70 Linux - Software 1 10-02-2004 10:16 PM
edit plus enochemu Linux - Software 2 09-06-2004 07:37 AM
need to edit!!! scammeh^ Linux - Newbie 5 11-16-2003 08:27 AM
Which do I need to edit? Do-Ping Linux - Software 4 04-04-2003 02:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration