LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 05-24-2009, 11:20 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,901

Rep: Reputation: 45
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, 12:13 PM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,091
Blog Entries: 2

Rep: Reputation: 109Reputation: 109
:syntax off

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

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

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

Regards.
 
Old 05-24-2009, 11:32 PM   #4
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,091
Blog Entries: 2

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

Original Poster
Rep: Reputation: 45
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 10:17 AM.
 
Old 09-01-2009, 11:31 PM   #6
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,091
Blog Entries: 2

Rep: Reputation: 109Reputation: 109
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-01-2009, 11:41 PM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 03:36 AM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 04:26 PM
Text Editor that can display ANSI Colour dasy2k1 Linux - Software 3 03-07-2009 03:26 PM
vim editor kosys Linux - General 6 12-31-2007 10:48 AM
weird colour behind text in vim matthewhardwick Linux - Software 2 09-20-2007 08:05 PM


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

Main Menu
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