Vim colorscheme change

Viewed 32318

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.

7 Answers

Currently, using Ubuntu and VIM 8, I did this:

Browse to your user directory:

cd ~

Create and open a .vimrc file:

vim .vimrc

Click i for insert mode. Type the following command below to enable syntax and give a specific colorscheme. This example uses the desert colorscheme:

syntax on

colorscheme desert

Hold Shift and hit : then type wq! to save and quit the file. You should now be able to use vi and the colorscheme you choose to edit files on your Grid.

Below the default set of colour schemes for Vim 8:

  • blue
  • darkblue
  • delek
  • desert
  • elflord
  • evening
  • industry
  • koehler
  • morning
  • murphy
  • pablo
  • peachpuff
  • ron
  • shine
  • slate
  • torte
  • zellner
Related