[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Colour coding in vim?



On Mon, Aug 27, 2001 at 11:58:45PM +1000, mdevin@ozemail.com.au wrote:
| Hi all you vim fans.
| 
| Is it possible to colour code text in vim?  What I would like to do is
| make vim colour my .c files while I edit them.  For example, it would be
| good to see all the comments coded a different colour.

Yes!

| How do you do this?

Put

syn on

in your .vimrc file.  Also check out the autocommand stuff.  You can
change the textwidth, wrapping options, apparent tab size and other
stuff when you load a C file.  These can be settings that you like for
C coding, but not for other things.  I use vim as my editor for mutt.
I have certain settings that are loaded automatically whenever I am
writing a mail.  It is really cool stuff!

-D



Reply to: