First of all, sorry if this is another one of those vim colors in iTerm2 questions. I have tried everything I could find and still can't solve the issue. iTerm2 just doesn't give the correct colors for me. Here is a screenshot comparing iTerm2 vim to Macvim.
:echo &t_Co
gives me 256
.
iTerm2 report terminal type is set to xterm-256color
. echo $TERM
gives xterm-256color
.
I am using base16-solarized as my colorscheme. The iTerm2 colorscheme is this, and my vim colorscheme is this.
Here is my vimrc.
Thanks for the help
edit: Here is another comparison, this time using the solarized.vim color from altercation/vim-colors-solarized:
edit: Tried with $TERM set to xterm, colors are better but there are still some issues with the buffer airline bar, not sure if this is supposed to be normal
TERM
toxterm-256color
is to allow Vim to use colors 16 to 255 of the xterm palette.xterm-256color
is pointless — in your situation — because neither Base16 nor Solarized use any color from that palette. – romainl