LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 05-24-2009, 12:20 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,273

Rep: Reputation: 49
editor - vim (vi) - removing colour capability.


Hi:
vim 7.1.
It loads a C source program and there's a lot of colour on the screen. The manual is dense. Anyone familiarized with it? If so, how can I do to disable colour highlighting. The
command likely to be as in vi. And although i once managed
to disable it, matching delimiters still were highlighted. There must be a more global command.

Thanks for reading.
 
Old 05-24-2009, 01:13 PM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,095
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
:syntax off

or add a syntax off line to your ~/.vimrc file

Last edited by estabroo; 05-24-2009 at 01:15 PM. Reason: off instead of disable
 
Old 05-24-2009, 01:49 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,273

Original Poster
Rep: Reputation: 49
Thanks a lot, Estabroo. I did it and colour went away. Unfortunately, matching parenthesis are still highlighted. Regards.

Regards.
 
Old 05-25-2009, 12:32 AM   #4
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,095
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
Sorry I didn't realize you wanted to turn off both, I think the paren thing is :set noshowmatch
 
Old 05-25-2009, 11:06 AM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,273

Original Poster
Rep: Reputation: 49
estabro: no, it only makes the cursor jump to a matching one but it doesn't matter. I'll manage. I take the opportunity to ask you what may be the reason why, in my system, vi is a mere link to elvis. Kind regards.

Last edited by stf92; 05-25-2009 at 11:17 AM.
 
Old 09-02-2009, 12:31 AM   #6
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,095
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
wow, sorry I didn't reply sooner. Elvis is probably your system's default editor that supplies a vi compat mode, same thing happens when you install vim, though it'll point to vim instead of elvis.
 
Old 09-02-2009, 12:41 AM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Which would prob explain why
set syntax off

didn't work. Maybe elvis isn't that compatible..
Hang on... what about

set nohighlight

???
 
  


Reply

Tags
editor, highlight, vim


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
"HOWTO Change Colour of Comments in VIM editor" manikantha Linux - General 8 07-16-2013 04:36 AM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 05:26 PM
Text Editor that can display ANSI Colour dasy2k1 Linux - Software 3 03-07-2009 04:26 PM
vim editor kosys Linux - General 6 12-31-2007 11:48 AM
weird colour behind text in vim matthewhardwick Linux - Software 2 09-20-2007 09:05 PM


All times are GMT -5. The time now is 12:28 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration