> Hello.
>
> 1) NONE works always, fg/bg ony after Normal definition.
> 2) If foreground or background changes, that color as was defined as
> NONE, also changes.
> If color is defined as fg/bg, it don't changes after foreground or
> background changes.
>
> So NONE is "better", than gf/bg.
> When I should use fg/bg instead of NONE?
NONE is different from fg/bg, NONE means "don't change", so the color
will be the current color instead of the Normal color.
For example if you define hi Visual guibg=Cyan guifg=NONE, the guifg
will be the original highlighted color when selected (test and you will
know the difference)
For ctermbg, NONE usually means transparent.
Especially, when you set Normal guifg/guibg to NONE, fg/bg will be a
syntax error. This is totally annoying.
My recommendation is to avoid using fg/bg at all cost.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment