LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   editor - vim (vi) - removing colour capability. (https://www.linuxquestions.org/questions/linux-software-2/editor-vim-vi-removing-colour-capability-728181/)

stf92 05-24-2009 11:20 AM

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.

estabroo 05-24-2009 12:13 PM

:syntax off

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

stf92 05-24-2009 12:49 PM

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

Regards.

estabroo 05-24-2009 11:32 PM

Sorry I didn't realize you wanted to turn off both, I think the paren thing is :set noshowmatch

stf92 05-25-2009 10:06 AM

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.

estabroo 09-01-2009 11:31 PM

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.

chrism01 09-01-2009 11:41 PM

Which would prob explain why
set syntax off

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

set nohighlight

???


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