On Fri, Feb 13, 2009 at 11:46 PM, Brett Stahlman wrote:
> On Feb 13, 1:24 pm, Matt Wozniski <[email protected]> wrote:
>> On Fri, Feb 13, 2009 at 7:43 AM, Stahlman Family wrote:
>> > One of the  classic uses of Ignore is to hide
>> > characters `*' and `|' when they surround tags in a helpfile. Is there
>> > really any reason to see such things at all?
>>
>> Learning how to write helpfiles, for one - a lot of the constructs
>> aren't documented, short of looking at a help file yourself, or
>> looking at syntax/help.vim.
>
> Hmmm. I suppose. (Although that sounds a bit to me like having a
> browser display the "<a href=..." as an aid to those learning html ;-)
> Seriously, I didn't mean to cause a stir. I simply viewed these
> characters as markup tags, and didn't realize there were so many who
> wished to see them. I will implement a workaround...

You mean you don't have your browser set up to do that!?  :-p  Point taken.

>> > At any rate, I'll look at putting a workaround in txtfmt: i.e.,
>> > something that will not rely upon the Ignore group to hide things...
>>
>> Easy enough, just adding a highlight group that you know is invisible.
>
> Easy enough for the gui, but perhaps not so easy for cterm, since Vim
> doesn't always know what the background color is in a color terminal.
> In my xterm, for instance, "ctermfg=bg" generates "E420: BG color
> unknown". Perhaps there's a way to obtain the background color in a
> cterm programmatically. I'll have to look into it...

Ech.  True.  There's no real way to do this that I can see...  It's
entirely possible for a terminal vim to set its Normal background
color to some color that isn't representable by any of the colors [ 0,
&t_Co ) - and, in that case, I don't know if there's anything you
could do (or the colorscheme) could do to make the foreground match
the background.  I'll keep thinking about it and see if I come up with
something...  The general way for an application to do this would be
sending CSI 8 m before the invisible character and CSI 28 m after,
telling the terminal "hide this text" instead of "change the color for
this text"...  But I know of no way to get vim to use that - and, even
if I did, it seems to cooperate with xterm and gnome-terminal, but not
with screen...

~Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to