Vim Colour highlighting

  • Follow


I would like to configure Vim to highlight certain expressions
in colour. For example, comments starting with # are coloured in Blue
in Mandrake 9.1, whilst in SuSe 8.2 everything is in green.
I found this howto:

http://www.tldp.org/HOWTO/Vim-HOWTO/gvim_init.html

but have missed where the setup file is color highlighting. Thanks in
advance for any help.


0
Reply zen22142 (5) 10/16/2003 4:50:30 PM

On Thu, 16 Oct 2003 17:50:30 +0100, anc staggered into the Black Sun and
said:
> I would like to configure Vim to highlight certain expressions in
> colour. For example, comments starting with # are coloured in Blue in
> Mandrake 9.1, whilst in SuSe 8.2 everything is in green.  I found this
> howto:
>
> http://www.tldp.org/HOWTO/Vim-HOWTO/gvim_init.html
>
> but have missed where the setup file is color highlighting.

The files you're looking for are in /usr/share/vim/vim62/syntax/ on my
machine; adjust the "vim62" for whatever version of vim you're using.  I
think the one you may want to edit for system-wide changes is
syncolor.vim , it's also possible to make user-level changes with
appropriate incantations in your ~/.vimrc file.  HTH,

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /    mail: TRAP + SPAN don't belong
http://www.brainbench.com     /  "He is a rhythmic movement of the
-----------------------------/    penguins, is Tux." --MegaHAL
0
Reply danSPANceswitTRAPhcrows2 (768) 10/16/2003 6:15:13 PM


Thus spake Dances With Crows:
> On Thu, 16 Oct 2003 17:50:30 +0100, anc staggered into the Black Sun and
> said:
> > I would like to configure Vim to highlight certain expressions in
> > colour. For example, comments starting with # are coloured in Blue in
> > Mandrake 9.1, whilst in SuSe 8.2 everything is in green.  I found this
> > howto:
> >
> > http://www.tldp.org/HOWTO/Vim-HOWTO/gvim_init.html
> >
> > but have missed where the setup file is color highlighting.
> 
> The files you're looking for are in /usr/share/vim/vim62/syntax/ on my
> machine; adjust the "vim62" for whatever version of vim you're using.  I
> think the one you may want to edit for system-wide changes is
> syncolor.vim , it's also possible to make user-level changes with
> appropriate incantations in your ~/.vimrc file.  HTH,
> 

A better way to do this is to use colour schemes.  In vim, type:

:colorscheme <tab>

To see what's available.  More can be downloaded from the vim website.
I have green comments on mine -- if this is what you want, you can get
it from:

http://marway.org/~al/al.vim

Put it in ~/.vim/colors and add the line:

colorscheme al

Or whatever you choose to use in your .vimrc

Hope that helps,

Al
0
Reply newsreader.mail1 (38) 10/17/2003 10:55:40 AM

In article <20031017105539.GA5376@zakalwe>,
 "A. S. Budden" <newsreader.mail@NOSPAM.southparade.vispa.com> writes:

>A better way to do this is to use colour schemes.  In vim, type:
>
>:colorscheme <tab>
>
>To see what's available.  More can be downloaded from the vim website.
>I have green comments on mine -- if this is what you want, you can get
>it from:
>
>http://marway.org/~al/al.vim

I think you mean 

:colorscheme <^D>

-- 
---------------------------------------------------------------
Brian V. Smith (bXvXsXmXiXtXh@lbl.gov) http://epb.lbl.gov/BVSmith
(remove the Xs above to send me email)
Lawrence Berkeley National Laboratory
I don't speak for LBNL - they don't pay me enough for that.
Check out the xfig site at http://epb.lbl.gov/xfig or http://www.xfig.org
0
Reply bvsmith (36) 10/17/2003 4:50:26 PM

3 Replies
65 Views

(page loaded in 0.372 seconds)

Similiar Articles:




7/24/2012 10:51:29 AM


Reply: