morhetz / gruvbox

Retro groove color scheme for Vim
13.7k stars 1.11k forks source link

Colorscheme resets after Vim restart #440

Open glow12121 opened 1 year ago

glow12121 commented 1 year ago

A question from a rookie.

I have installed gruvbox theme, then enabled it with colorscheme gruvbox and the scheme switched on just fine.

However, after I restart Vim, it looks like this:

image

glow12121 commented 1 year ago

I think I got it - it was the scheme's light mode. Adding this line solved the problem:

set bg=dark    " Setting dark mode
dufuhang commented 1 year ago

I have same issue. But I don't know why I should set set bg=dark. Because according to this wiki, this settings is unnecessary. Bug maybe?

nebelch commented 1 month ago

The default value of background varies depending on the system and environment settings; see help 'background' in vim.