On Tue, Jan 7, 2014 at 7:58 PM, Matteo Cavalleri <cvlmtg@gmail.com> wrote:
According to :help :hi-normal-cterm, :hi command may change 'background' option.
*:hi-normal-cterm*
When setting the "ctermfg" or "ctermbg" colors for the Normal group,
these will become the colors used for the non-highlighted text.
Example: >
:highlight Normal ctermfg=grey ctermbg=darkblue
When setting the "ctermbg" color for the Normal group, the
'background' option will be adjusted automatically. This causes the
highlight groups that depend on 'background' to change! This means
you should set the colors for Normal first, before setting other
colors.
When a colorscheme is being used, changing 'background' causes it to
be reloaded, which may reset all colors (including Normal). First
delete the "g:colors_name" variable when you don't want this.
:set t_Co?
t_Co=256
:set background=dark
In my vimrc I have:
set background=dark
colorscheme xoria256
however when i run vim, if i do "set background?" or "echo &background", the answer is "light", not dark.
If i do "verbose set background?" the answer is "Last set from ~/.vim/bundle/xoria256.vim/colors/xoria256.vim", but if i open the file i see "set background=dark", so why &background is set to light?
what's even stranger, if i do "set background=dark" some colours change... (e.g. comments turn to cyan)
any insights on this? is it a bug?
According to :help :hi-normal-cterm, :hi command may change 'background' option.
*:hi-normal-cterm*
When setting the "ctermfg" or "ctermbg" colors for the Normal group,
these will become the colors used for the non-highlighted text.
Example: >
:highlight Normal ctermfg=grey ctermbg=darkblue
When setting the "ctermbg" color for the Normal group, the
'background' option will be adjusted automatically. This causes the
highlight groups that depend on 'background' to change! This means
you should set the colors for Normal first, before setting other
colors.
When a colorscheme is being used, changing 'background' causes it to
be reloaded, which may reset all colors (including Normal). First
delete the "g:colors_name" variable when you don't want this.
:set t_Co?
t_Co=256
:set background=dark
:set background?
background=dark
:hi Normal ctermbg=252
:set background?
background=light
:set background?
background=light
--
Yukihiro Nakadaira - yukihiro.nakadaira@gmail.com
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment