Solarized colorscheme for vim and wrong background color

I am using urxvt with Solarized backlight color palette. My .Xresourcesfile is configured correctly according to these instructions . I also use Vim as the editor in chief. I installed Solarized colorscheme for Vim and modified the file .vimrcaccording to these instructions . I like the light background color, so I put the following lines in.vimrc

syntax enable
set background=light
colorscheme solarized

However, Vim set the background color to dark. Then I edited the second line, wrote set background=darkand vim changed the background color to light.

The problem is that it set background=lightgives me a dark background, but set background=darkit gives me a light background. Why is this weird behavior? How to solve this problem? Ah, if I leave the line set background, everything will look fine (the background is light). I also noticed that gvim sets the correct background color.

+4
source share
1 answer

Well, I found what went wrong. The official (?) Solarized for X Windows is broken when using light colors. It is discussed here and here . The color scheme has not adapted to the meaning background. I solved the problem using the configuration from seletskiy configuration.

+1
source

Source: https://habr.com/ru/post/1546917/


All Articles