views:

61

answers:

2

I'm having difficulty getting my colorscheme to change. I've opened both ~/.vimrc and /usr/share/vim/vimrc and added:

colorscheme desert

...and nothing. I noticed the color schemes are here:

/usr/share/vim/vim72/colors/desert.vim (...along with a bunch or others)

which seems like the wrong place so I:

cp /usr/share/vim/vim72/colors/desert.vim ~/.vim/colors/

and still no go. Any help would be much appreciated.

+1  A: 

Custom colorschemes should go in ~/.vim/colors/, and adding the colorscheme line in your ~/.vimrc should work. So it sounds like you're doing that right.

Double-check that you don't have some other colorscheme line lower down in your vimrc or in an included config file that might be overriding it.

Also double-check that your .vimrc is being loaded as expected. One easy way to tell is by trying to load a nonexistant colorscheme name - if the line is being parsed, then you should get an error like:

E185: Cannot find color scheme foobarbaz

If your colorscheme line is being correctly parsed, you need to check if your terminal is correctly configured to display the colors.

SuperFastNinja
Thanks Ninja. I opened Zin and typed :colorscheme desert and nothing changed. I don't think it's that Terminal isn't correctly configured to display colors either because it does display a theme--just not the theme I specify.
jwerre
PS I do get an E185 if I type in a bogus color scheme
jwerre
A: 

If you are using vim-tiny in Ubuntu (the default one). Try to install vim-nox, vim-gtk or vim-gnome.

Virasak