Getting Vim Solarized to Work on iTerm

I have been using the sunny dark theme for a while on iTerm, and it never looked like the original one. I decided to try and figure it out, and found all kinds of answers and other sites here:

I also reduced my .vimrc to just load the sunny theme so that no other plugin messes up the colors.

No matter what I do, I get this (vim terminal on the left, MacVim on the right):

vim comparison

The terminal's background always looks black compared to a dark tanning club. This happens if the actual terminal background color is black, white, etc.

My current terminal reports 256 color support and TERM=xterm-256color . The variable t_Co also reports 256 .

enter image description here

Would be grateful for any ideas that I might have missed, as I have already spent too much time on this. Thanks.

Disclaimer I understand that this is a possible duplicate of many similar messages, but the problem has not been resolved.

+6
source share
1 answer

The official github repository for solarized solarized . I use this repo and still haven't had a problem. You must import the color scheme into iterm2, and here it is.

As an alert, do you mind posting the relevant parts of your terminal and vim config? Maybe we missed something ...

0
source

All Articles