On Feb 14, 8:00 am, Brett Stahlman <[email protected]> wrote:
> On Feb 14, 3:33 am, Tony Mechelynck <[email protected]>
> wrote:
>
>
>
>
>
> > On 14/02/09 09:52, Matt Wozniski wrote:
>
> > > On Sat, Feb 14, 2009 at 3:37 AM, Tony Mechelynck wrote:
> > >> $VIMRUNTIME/syntax/syncolor.vim defines the Ignore group as follows:
>
> > >> - If 'bacground' is set to "dark"
> > >>         term=NONE cterm=NONE ctermfg=black ctermbg=NONE gui=NONE guifg=bg
> > >> guibg=NONE
>
> > >> - otherwise
> > >>         term=NONE cterm=NONE ctermfg=white ctermbg=NONE gui=NONE guifg=bg
> > >> guibg=NONE
>
> > >> The result, in konsole where "ctermfg=bg" gives "E420: BG color
> > >> unknown", is that bg and fg get set to the same colour (which, in my
> > >> case, is a kind of pale yellow).
>
> > > Hm.  Since it's "pale", I assume "background" is set to "light" - in
> > > which case, the foreground should be white, and the background should
> > > be whatever the default background for your terminal window is -
> > > yellow-ish, I assume?
>
> > > ~Matt
>
> > ":hi Ignore" _says_ cterm colors are set to cterm=bold ctermfg=7 but
> > _actually_ it is not white foreground but pale yellow, just like the
> > background. I guess that's the solution for setting invisible highlights
> > in cterm -- I've altered my colorscheme to
>
> >         :exe "hi Ignore term=NONE guibg=white guifg=#999999 ctermfg="
> >           \ . (&bg == "dark" ? "black" : "white")
>
> > and it works, even in terminals with a "light but non-white" background.
>
> It doesn't seem to work in the evening colorscheme, which has a rather
> dark grey background, but for which bg == light. I wonder whether the
> "pale yellow" you see in your konsole is simply that console's version
> of white? In my xterm, most of the "light" colorschemes I tried had
> the same "whitish" background. For the ones with more grey
> backgrounds, the solution above shows the ignored text in white. It's
> rather obvious for the evening colorscheme, since the background is
> such a dark grey; it's less obvious for a colorscheme such as morning,
> whose background is a much lighter grey.
>
> Note that both evening and morning colorschemes hide Ignore characters
> completely with the following settings...
> evening:
>     Ignore ctermfg=242
> morning:
>     Ignore ctermfg=7
> ...which set ctermfg to the same number used for ctermbg in the Normal
> group. I suppose I can use the brute-force approach: i.e., parse the
> output of ":hi Normal" and extract the ctermfg value...

On second thought, that won't work. The output of ":hi Normal" in the
desert colorscheme is...
Normal    xxx    cleared
...which isn't very helpful. I did a quick test with synIDattr(), and
got a -1, which isn't very helpful either. Hmmm...

Brett Stahlman

>
> Thanks,
> Brett Stahlman
>
>
>
>
>
> > Best regards,
> > Tony.
> > --
> > Johnson's First Law:
> >         When any mechanical contrivance fails, it will do so at the
> > most inconvenient possible time.- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to