On 19/07 00:09, Nikolay Pavlov wrote:
>2015-07-18 16:11 GMT+03:00 Niels Kobschaetzki <
ni...@kobschaetzki.net>:
>> Hi,
>>
>> I just noticed something weird in my setup. In my .vimrc I have the
>> following setting: "set background=dark" and I am using the color scheme
>> desert.
>>
>> When I do now in the editor: :set background=light
>> the colors change as expected
>>
>> When I do now a :set background=dark
>> the colors change again but not to the colors I got when I started vim
>> but a bit more brighter which looks actually better.
>>
>> I wonder now
>> a) what is the reason for it?
>> b) what can I do to get the even brighter color after setting the
>> background to light and back to dark again?
>>
>> I tried already setting in .vimrc: set backround=dark
>> set background=light
>> set background=dark
>>
>> but that didn't work.
>
>:set background additionally acts like `:colorscheme default`. If you
>call :colorscheme after this it is up to the colorscheme itself to
>(dis)respect &background setting. If you need colors like with `set
>background=light` do `set background=light` in the vimrc *and* remove
>`:colorscheme desert` call.
Aah, thanks a lot. I didn't know this :)