Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu, vim, and the solarized color palette

I'd really like to get in on all the colorful goodness of the solarized colorscheme, but I can't seem to get it configured just right.

I have the main solarized file in my .vim/colors folder, I've set my terminal profile colors to what is listed on the site, and I've added the lines

 set background=dark  let g:solarized_termcolors=16  colorscheme solarized 

to my .vimrc file, but Vim looks greyed out and is using a bright green color as the default. How can I do it?

like image 452
danwoods Avatar asked Apr 06 '11 01:04

danwoods


People also ask

How do I add a color scheme 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 does vim look for color schemes?

Vim color schemes are stored in vim directory named /usr/share/vim/vim80/colors/ but vim80 can be different according to vim version.

How do I change the default color scheme in vim?

vimrc (or . Here, you can set the default color scheme by modifying the colorscheme line and setting the theme you prefer. When manually configuring syntax highlighting, you can add individual instructions with the highlight command.


1 Answers

Here's my recommendation for things to try:

  1. ensure syntax on is in your .vimrc file
  2. Check what t_Co Vim has picked up from your term emulator (a quick :echo &t_Co). If it's 8, you'll want to se t_Co=16. You might also try se t_Co=256 though without let g:solarized_termcolors=16 this will use the 256 fallback mode, which isn't quite the correct color scheme.
like image 150
altercation Avatar answered Oct 02 '22 22:10

altercation