osx - Incorrect colors with vim in iTerm2 using Solarized -
I have a strange problem with iTerm2, in terminal vim (non-GI) and solarized color scheme. First of all, I have set ITerm2 to use the dark solar color scheme.
I am also using solarized for vim. I have the following lines Vimrc
set background = dark color algebra The color scheme looks wrong in the terminal:
For reference it is such that MacVim (gui vim)
Certain things to check:
-
In ITerm2, in preferences -> Profile - & gt; Terminal, under "Terminal Emulation" you have "Terminal Emulation Report" which is set to the XTellM-256 color.
-
In your .vimrc, there are some options that you can also set to make sure that it is using 256 colors: and one of them should work, but first # 1. However, if you are using the default, Snow Leopard is made in Vim, it will not work, because it is capable of 256 colors . I believe that the version created in the lion.
Edit: Based on many comments on this answer, I have removed let g: solarized_termcolors = 256 from the above .vimrc example. It seems that there might be a problem for some. Another says that connecting the line let g: solarized_termcolors = 16 Color display problem was fixed. Your own mileage could be different. Second edit: If you have The solar system color palette is loaded in iTerm2, then you should go to g: solarized_termcolors = 16 . > > >
Comments
Post a Comment