Wednesday, September 7, 2011

Re: order of cterm=?, ctermfg=? in :highlight

On 2011-09-07, you wrote:
> I've just noticed that
>
> :highlight TablineSel ctermfg=white ctermbg=blue cterm=NONE
> and
> :highlight TablineSel cterm=NONE ctermfg=white ctermbg=blue
>
> does not give the same result.
>
> In the first case, the cterm=NONE works, while in the second it does not
> (after that cterm=bold)
>
> It seems that's because a command such as
> :hi TabLineSel ctermfg=color
> also automatically modify cterm (after that cterm=bold) and thus the
> cterm information has to be precised after the ctermfg information.
>
> Can someone give me more explanation about the exact rule vim use ?

Do

:help highlight-cterm
:help highlight-ctermfg

help explain what you're seeing?

Regards,
Gary

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

No comments: