How can I activate Vim color schemes in OS X's Terminal?

Viewed 80883

I'm working with the Vim 7.2 that comes with Mac OS 10.6.1 (Leopard), using the Mac's "Terminal" app. I'd like to use a fancy color scheme. I did this...

:syntax on

Then this...

:colorscheme slate

:colorscheme elflord

:colorscheme desert

etc...

Syntax highlighting is working, but I'm finding that regardless of the scheme I choose, the only colors displayed are the basic Red, Blue, Cyan, Gray, etc.

Is there a way to get the Terminal app to display a larger collection of colors to allow some more subtle schemes?

6 Answers

You need to create file ~/.vimrc and add syntax on in that file

vi ~/.vimrc

syntax on

save the file and run your vim

Add "syntax on" to the file /usr/share/vim/vimrc and you'll get highlighting in your files every time you edit one.

# vi /usr/share/vim/vimrc

Add this line at the end of the file:

syntax on

Now you'll get highlighting when you edit whatever's file.

Related