morhetz / gruvbox

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

vim gruvbox theme does not work with automatic background #461

Open nebelch opened 3 months ago

nebelch commented 3 months ago

If I write this in my vimrc:

let &t_RB="\e]11;?\e\\"  " set background option automatically
colorscheme gruvbox

...gruvbox overrides background to light. The issue appears to be this bit, added in issue #7 :

if s:is_dark
  set background=dark
else
  set background=light
endif

...presumably because the t_RB machinery does not run until after this does, by which time it’s too late. For what it’s worth, I do not see issue #7 come back in macOS Terminal.app (256 color) after removing it.