Re: [BUG] Background is reset when ctermbg for `Normal' group is redefined
- ZyX wrote:
> While using wombat256mod I found out that it somehow sets &background to 'light'This works as intended. You would normally first set the Normal
> but the only line containing reference to 'background' is `set background=dark'.
> Wombat256mod colorscheme is a colorscheme with dark backround and wrong value of
> &bg confused my format.vim plugin. After some experiments I found that source of
> the problem is the line
> hi Normal ctermfg=252 ctermbg=234 cterm=none
> guifg=#e3e0d7 guibg=#242424 gui=none
> ctermbg=234 is a dark grey color a bit lighter then ctermbg=Black, so setting
> background to light is wrong. Also note that such behavior is referenced neither
> in `:h :hi-normal' nor in `:h 'bg''. What for vim is altering 'bg' option if it
> is already set in colorscheme? I guess it should not be done at all.
> This behavior is reproducible with
> vim -u NONE -c 'set bg?' -c 'hi Normal ctermbg=234' -c 'set bg?'
highlighting, and if the 'background' option is then wrong correct it.
Then set the other colors. Most times 'background' will be correct,
which is nice for people that don't even know it exists.
Contrary to popular belief, Unix is user friendly.
It just happens to be selective about who it makes friends with.
-- Dave Parnas
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
You received this message from the "vim_dev" 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