Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change the highlight color in vim

Status
Not open for further replies.

hokky

Technical User
Nov 9, 2006
170
AU
Hi guys,

I'm using vim in Redhat, and I have a problem with the hightlight color which is light yellow, and my text is white.

my vim version is :
VIM - Vi IMproved 6.3

Thanks guys,
 
I don't know Linux but what about man vim ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
When you are in vim drop to the command prompt and type:

[tt]:help syntax-highlighting[/tt]

Annihilannic.
 
Hi Anni,

another more questions :

if I say
:syntax on

do you where the standard syntax.vim is ?

I notice that if I put
:syntax off

the highlight is still working.

Thanks man,
 
Hi Anni,

I have already found where the $VIMRUNTIME is ?

and I have changed it to the other file which is c.vim

but it still doesn't change the highlight color ?

what I did was :
:set syntax=c

Can you help me more pls?
 
Now you know as much about VIM syntax highlighting as I do. :) It should all be documented in there somewhere...

Annihilannic.
 
For each type of programming language there is a specific file to define the highlighting and other language nuances. Look in the syntax directory of your vim install.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top