Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim colorscheme change

Tags:

vim

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.

like image 757
jwerre Avatar asked Oct 27 '10 20:10

jwerre


People also ask

How do I change the Colorscheme in vim?

After typing the command, press “Tab”. This will open a list of all the available color schemes. If you keep pressing “Tab”, Vim will cycle through all of them.

How do you change the color of text in vim?

You can change color schemes at anytime in vi by typing colorscheme followed by a space and the name of the color scheme. For more color schemes, you can browse this library on the vim website. You can enable or disable colors by simply typing "syntax on" or "syntax off" in vi.

Where do I put vim Colorscheme?

You can put the color scheme file into ~/. config/nvim/colors f older. Where ~ is your user home directory.


1 Answers

Try setting your terminal colours in your .bashrc/.bash_profile to:

export TERM=xterm-256color

& in your .vimrc

let g:"your_colourscheme"_termcolors=256

& that should stick. Bit of a kludge I know but it should work.

Saves typing

:colorscheme whatever everytime you start Vim

like image 124
phildobbin Avatar answered Sep 23 '22 13:09

phildobbin