How do I run VI with colors on Lion?
It’s a matter of having the right settings in your ~/.vimrc file. Here’s mine: https://github.com/mathiasbynens/dotfiles/blob/master/.vimrc.

The key is to add this:

" Enable syntax highlighting
syntax on


You can install color schemes in your ~/.vim/colors directory. To enable a colorscheme, use:

" Select a colorscheme
colorscheme molokai


I’m using Molokai, which looks like this when editing a JavaScript file: