Tuesday, January 7, 2014

Re: background variable always set to light

>     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.

I see that xoria does:


set background=dark
hi clear

if exists("syntax_on")
syntax reset
endif

let colors_name = "xoria256"

hi Normal ctermfg=252 guifg=#d0d0d0 ctermbg=234 guibg=#1c1c1c cterm=none gui=none


so if i understood your post, it does everything correct, but maybe that "ctermbg=234" alters &background? it is the correct (dark) grey though...


>     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.

mh... i'm not sure to have understood this one. I haven't set anything except the background variable, so even if it reloads the color scheme i expect to see no changes at all.

--
--
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: