LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 15
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
 
Old 08-13-2004, 01:36 AM   #2
shubb
Member
 
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.
 
  


Reply


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 09:23 PM
Anything I can use to edit flash? webwolf70 Linux - Software 1 10-02-2004 09:16 PM
edit plus enochemu Linux - Software 2 09-06-2004 06:37 AM
need to edit!!! scammeh^ Linux - Newbie 5 11-16-2003 07:27 AM
Which do I need to edit? Do-Ping Linux - Software 4 04-04-2003 01:34 PM


All times are GMT -5. The time now is 04:27 AM.

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