Macos – Solarized colors in vim don’t seem to be working for me

macmacossolarizedvim

I am running vim, and trying to get the vim solarized colors to work in terminal.

I have this in my vimrc file:

set syntax on
set t_Co=256
" let g:solarized_termcolors=16
set background=light
colorscheme solarized

It doesn't seem to work.

I outputted (using :echo) the value of t_Co and it is 256.

What is the issue? I'm confused.

Best Answer

I had similar problems, adding this to my .vimrc fixed my problems

set term=xterm-256color
set background=light
colorscheme default

I'm not sure why setting the color scheme to default worked but I'm using solarized light as my terminal theme so maybe the colors are just similar to solarized, however they're good enough for me.