I'm trying to get the desert color scheme to work in vim. So far I have my colors folder
~/.vim/colors/desert.vim
And in my .vimrc file I have the line
colorscheme desert
Syntax highlighting turns on, but without the correct colors. I'm accessing vim through iTerm on macosx. I've tried setting this up on both my local machine as well as a remote ubuntu box. On the local machine vim is at version 7.2.108 and on the remote machine vim is at version 7.1.138.
I'm just starting out with cli so let me know what I'm leaving out.
Best Answer
If you're using vim through a terminal and not using a graphical version like gvim or macvim, there's a chance you are in 256-color mode. I don't think the regular desert scheme is compatible with that. There's another colorscheme desert256 you might try instead.
colorscheme desert256
You might also need to put something like:
set t_Co=256
in your .vimrc.