Tuesday, August 25, 2009

Re: NONE vs fg/bg as color in highlight.

> NONE is different from fg/bg, NONE means "don't change", so the color
> will be the current color instead of the Normal color.

If Normal's foreground/background isn't defined,
then NONE is the foreground/background color of console, gui, xterm
(which is defined, for example, with -fg/-bg)
else if Normal's foreground/background defined,
then NONE is the foreground/background color of Normal.


> 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)
No. What you mean under "original highlighted color"?
:colorscheme default
:set number "Now I see red number
'1' with white background.
:hi LineNr guibg=green guifg=NONE "Now I see black number '1' with
green backgorund.

> For ctermbg, NONE usually means transparent.
Ok. It must be described in help.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments: