[EMAIL PROTECTED] wrote:
"A.J.Mechelynck" <[EMAIL PROTECTED]> writes:

99 is not a normal color for a cterm (color terminals have mostly 8 or
16 colors, or maybe 8 background and 16 foreground) so maybe it
doesn't give reliable results. Replace "ctermfg=99" by
"ctermfg=DarkYellow" or "ctermfg=Brown" to get brown. Or for something
more outlandish:

        hi StatusLine cterm=NONE ctermbg=darkred ctermfg=white
        hi StatusLineNC cterm=bold,reverse

See
        :help attr-list         " for NONE, bold, reverse, etc.
        :help cterm-colors      " for red, blue, grey, brown, etc.


I don't think I posted my commented note about 99 but it says if you
use 99 it's supposed to cause the default (font) or foreground color
to happen  I'm not real sure of the notes vintage, but it appears to
be from 2003
# [HP 07/08/03 21:18  Using 99 means it uses default font color]

The whole syntax arrangement goes back even farther when I swiped it
lock stock and barrell from a fellow named Donavon:
[HP From Donavans .vimrc: May 20 2000]
But now I see how it works I can insert what I like.  I think that 99
may have been an attempt to be more portable.

Thanks again. This appears to be a nice smooth and easy look on a black xterm:
   hi StatusLine cterm=NONE ctermbg=8 ctermfg=7

Dark grey background lightgrey foreground.



IIUC, to get the default fg settings, you just use cterm=NONE and no ctermfg= entry; or ctermfg=fg which gives you the same fg as in the "Normal" highlight group. I've never heard of ctermfg=99 being used in Vim on a 16-color xterm.

(About the font: Vim has no control over the terminal font, if you want to change it in an xterm you must work with the xterm's own settings, or possibly with those of X11.)

So much the better that you've finally found how to "reliably" set the colours to something you like!


Best regards,
Tony.

Reply via email to