Originally posted by: AznMaverick
nevermind this is bashrc. how do you modify the colors for vim?
First make sure that you are realy using vim and not something like nvi or elvis. Do a "which vi" to find the binary and do a ls -l of it to see were it's sym-linked to.
I also assuming that your running the command line version and not the gui version (gvim or something like that)
Vim will automaticly change colors according to what it thinks your working on. It has a couple different things it looks for in a file to guess what file type it is. But the easiest is to use a extension of the filename.
Like if your writing a new file, starting vim with something like this:
vi helloworld.c
Will tell vim to setup the colors to match C programming syntax.
Other then that, I don't know. That's about the limit to my knowledge on vim's colors.
The gui version of vim allows more control, I beleive, and there are many extensions built for vim to use that help out programming a lot.
check out here
That's part of a open book teaching how to use vi in general.
And their is also extensive documentation aviable from vim's own website.
From what I've heard before that once people get the enviroment set up to how they like it and get used to it, then they can program much faster in vim then thru a big IDE.