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

Re: OT: vim syntax highlight on C program files only?



on Mon, Aug 27, 2001 at 06:52:48PM -0700, Erik Steffl (steffl@bigfoot.com) wrote:
> "Karsten M. Self" wrote:
> > 
> > I'm starting to play with C a bit.  Discovering some nice things in vim.
> > 
> > I know that there's an 'au' and 'augroup' commands, and that a number of
> > vim settings can be configured using these.  I'm not sure what current
> > settings exist for C program files (matching pattern *.c), or how I
> > should use these settings to enable appropriate settings for programming
> > support.
> 
>   if you install vim-rt the syntax highlighting should work on most
> files.
> 
>   put:
> 
> syntax on
> 
>   into your ~/.vimrc

I'd rather not as I'm very used to not having syntax highlighting in
shell scripts, and find it distracting.  Hence the conditional
activation.

> > In particular, I'd like to enable syntax highlighting, and maybe get
> > some ideas of what I should change to make things a bit more readable
> > (some of my screen colors are very hard to read, particularly blue, also
> > red, bolding them should help a lot).
> 
>   the gvim (opens vim in its own window) has much better colors since it
> is not limited to few colors that xterm uses (by default).

Prefer working in xterms (well, rxvts).

>   also, set up your background (light or dark):
> 
> set background=dark

This has no effect.  I'm already running gold (fg) on black (bg).

-- 
Karsten M. Self <kmself@ix.netcom.com>          http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?             There is no K5 cabal
  http://gestalt-system.sourceforge.net/               http://www.kuro5hin.org
   Free Dmitry! Boycott Adobe! Repeal the DMCA!    http://www.freesklyarov.org
Geek for Hire                        http://kmself.home.netcom.com/resume.html

Attachment: pgpxY1kWw1vpX.pgp
Description: PGP signature


Reply to: