Incorrect colors with vim in iTerm2 using Solarized

后端 未结 11 1133
傲寒
傲寒 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:50

    https://github.com/altercation/solarized/tree/master/iterm2-colors-solarized

    Download Solarized package (https://github.com/altercation/solarized) and follow instructions:

    Open iTerm 2, open Preferences, click on the "Profiles" (formerly Addresses, formerly Bookmarks) icon in the preferences toolbar, then select the "colors" tab. Click on the "load presets" and select "import...". Select the Solarized Light or Dark theme file.

    You have now loaded the Solarized color presets into iTerm 2, but haven't yet applied them. To apply them, simply select an existing profile from the profile list window on the left, or create a new profile. Then select the Solarized Dark or Solarized Light preset from the "Load Presets" drop down.

    ====================================

    Or:

    cd ~/.vim/bundle
    git clone git://github.com/altercation/vim-colors-solarized.git
    

    Modify .vimrc

    Dark Theme:

    syntax enable
    set background=dark
    colorscheme solarized
    

    Light

    syntax enable
    set background=light
    colorscheme solarized
    

提交回复
热议问题