LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 05-24-2009, 12:20 PM   #1
ENRIQUESTEFANINI
Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware 12.0
Posts: 114
Thanked: 0
editor - vim (vi) - removing colour capability.


[Log in to get rid of this advertisement]
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.
ENRIQUESTEFANINI is offline  
Tag This Post , ,
Reply With Quote
Old 05-24-2009, 01:13 PM   #2
estabroo
Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 657
Blog Entries: 2
Thanked: 18
: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
estabroo is offline     Reply With Quote
Old 05-24-2009, 01:49 PM   #3
ENRIQUESTEFANINI
Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware 12.0
Posts: 114
Thanked: 0

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

Regards.
ENRIQUESTEFANINI is offline     Reply With Quote
Old 05-25-2009, 12:32 AM   #4
estabroo
Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 657
Blog Entries: 2
Thanked: 18
Sorry I didn't realize you wanted to turn off both, I think the paren thing is :set noshowmatch
estabroo is offline     Reply With Quote
Old 05-25-2009, 11:06 AM   #5
ENRIQUESTEFANINI
Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware 12.0
Posts: 114
Thanked: 0

Original Poster
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 ENRIQUESTEFANINI; 05-25-2009 at 11:17 AM..
ENRIQUESTEFANINI is offline     Reply With Quote
Old 09-02-2009, 12:31 AM   #6
estabroo
Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 657
Blog Entries: 2
Thanked: 18
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.
linuxdebian estabroo is offline     Reply With Quote
Old 09-02-2009, 12:41 AM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 5.4
Posts: 7,428
Thanked: 325
Which would prob explain why
set syntax off

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

set nohighlight

???
windows_xp_2003 chrism01 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 05:26 PM
"HOWTO Change Colour of Comments in VIM editor" manikantha Linux - General 2 04-12-2009 06:41 AM
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 09:27 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration