Incorrect colors with vim in iTerm2 using Solarized

后端 未结 11 1134
傲寒
傲寒 2020-12-07 07:43

I am having a strange issue with iTerm2, in terminal vim (non-gui) and the solarized color scheme. First, I have set iTerm2 to use the dark solarized colour scheme.

11条回答
  •  我在风中等你
    2020-12-07 07:55

    Bill Turner's answer works, but there is a way to get the colors to match MacVim exactly. Solarized has support specifically for iTerm2, among other terminal emulators.

    1. Go to the iterm2-colors-solarized github page
    2. Follow the instructions under "Installation"
    3. Make sure your .vimrc has the line colorscheme solarized

    This should set the vim colors in iTerm2 to be exactly as they are in gui editors.

提交回复
热议问题