set background=dark not working in vimrc

209 views
Skip to first unread message

Niels Kobschaetzki

unread,
Oct 25, 2014, 3:21:40 AM10/25/14
to vim_use
Hi,

I am using the solarized colorscheme which uses different colors
depending on background=light/dark.
When I manually do a ":set background=dark", I get the colors as
expected. But when I write
set background=dark
in my .vimrc, vim starts with a light background-setting anyway. Any
ideas what I could doing wrong?
I checked all the files I am sourcing whether there is a set
background=light but I can't find anything.

Niels

Ethan Hereth

unread,
Oct 25, 2014, 10:56:29 AM10/25/14
to vim...@googlegroups.com
Niels, 

What does ':verbose set background' say? I would assume that another plugin might be resetting it.

Ethan Alan  
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Ethan Alan

Christian Brabandt

unread,
Oct 25, 2014, 12:41:49 PM10/25/14
to vim_use
Hi Niels!
Place it after your colorscheme call (that one might unexpectedly change
it and there is also a bug still open).

Best,
Christian
--
Man kann nicht erwarten, daß ein rundlicher Mann gliech in ein
viereckiges Loch paßt. Man muß ihm Zeit geben, sich anzupassen.
-- Mark Twain (eigl. Samuel Langhorne Clemens)

Niels Kobschaetzki

unread,
Oct 25, 2014, 5:19:06 PM10/25/14
to vim...@googlegroups.com
On 25/10 10:56, Ethan Hereth wrote:
>On Saturday, October 25, 2014, Niels Kobschaetzki <ni...@kobschaetzki.net>
>wrote:
>
>> Hi,
>>
>> I am using the solarized colorscheme which uses different colors
>> depending on background=light/dark.
>> When I manually do a ":set background=dark", I get the colors as
>> expected. But when I write
>> set background=dark
>> in my .vimrc, vim starts with a light background-setting anyway. Any
>> ideas what I could doing wrong? I checked all the files I am sourcing
>> whether there is a set
>> background=light but I can't find anything.
>>
>> Niels
>
>
>Niels,
>
>What does ':verbose set background' say? I would assume that another plugin
>might be resetting it.

Thanks a lot, that's it. I forgot that I have sunset.vim installed which
didn't have any effect on the theme I used the last 12 months or so m)

Niels
Reply all
Reply to author
Forward
0 new messages