2010/6/1 Brett Stahlman <brettstahlman@comcast.net>
...[snip]...
> > > And unfortunately is not working,Pablo,
>
> > Pablo,
> > Do you mean that hi Ignore ctermfg=black does not change the
> > foreground color of the tokens to black? What happens if you
> > execute...
> > hi Ignore ctermfg=black
> > ...in a standard Vim help buffer? You will get "E421: Color name or
> > number not recognized" if the specified color is not supported by your
> > cterm. Or were you simply saying that black is not always the correct
> > background color?
>
> Yep it is, the autocommand doesn't change the foreground color for the
> special characters to black.
> Also the background is black for the whole screen except for those words
> affected by the formating, which apperars with a grey background.
> I have attached a screenshot (I dont know if the list allows to attach
> files).
> If I execute the command from the command line the characters dissapears but
> the background is still grey rather than black.
> And yes, I am using a help file type, this is the modeline I am using:
> vim:tw=78:ts=8:ft=help.txtfmt:norl:
Thanks for the screenshot. I'll check into it tonight when I have
access to a real terminal on my Linux system at home. Do you mind
telling me what colorscheme and terminal you're using? Also, what type
of region is being applied to the text with the grey background (e.g.,
"TDVIM USER MANUAL")? (I'm guessing it's bold-italic, and you're using
a color terminal that doesn't really support italic, but displays it
as reverse video instead...)
Probably is this, because I was wondering why the italics doesn´t appear in the terminal.
Yep it is trying to use bold italics.
The color scheme is CodeFactory:
http://www.vim.org/scripts/script.php?script_id=3079
Yep it is trying to use bold italics.
The color scheme is CodeFactory:
http://www.vim.org/scripts/script.php?script_id=3079
Well, you could parse the output of...
>
>
>
>
>
>
>
> > > I have check the list of autocommands and
> > > everything looks ok, with the new commands for ColorScheme event, but is
> > not
> > > working.
> > > The one that refresh txtfmt after loading a colro scheme works grat and
> > now
> > > I can change my color scheme and get everything sync.
> > > If the hi Ignore would work I think that the perfect solution should be
> > to
> > > grab the background solor of the current colro scheme and use it as the
> > > colro for the Ignore group.
> > > There is any way to know the background color of the current scheme???
>
> > With the GUI, the background color is always known by Vim: thus, no
> > workaround is required for any colorscheme, since the plugin can
> > always do this:
>
> > :hi Ignore ctermfg=bg
>
> If you do this using a color scheme that doesn't define the background color
> you got an error.
> Any to detect if my current colorscheme is defining the background color, so
> I can use bg if it is defined or black otherwise .
:hi Normal
...but note that if your colorscheme defines the Normal background
color, you shouldn't have to do anything special; the plugin should
handle it...
Sincerely,
Brett Stahlman
> cheers
>
>
>
>
>
>
>
> > With a cterm, however, Vim has no way of knowing the background color
> > unless the colorscheme sets the Normal background color explicitly:
> > e.g.,
>
> > :hi Normal ctermbg=<some_color>
>
> > Some of the colorschemes contain this sort of explicit set of Normal
> > background color, but many simply leave it at the terminal's default.
> > If you want to use such a colorscheme in a color terminal, you will
> > have to determine the correct background color through visual
> > inspection. Having done that, you can either set the Ignore group's
> > ctermfg to match the observed background color (workaround #1) or
> > explicitly set the Normal group's ctermbg to match the observed
> > background color (workaround #2). Unfortunately, the plugin can't
> > determine the background color automatically, since Vim itself doesn't
> > know...
>
> > Thanks,
> > Brett S.
>
> > > cheers
>
> > > > Also if you change your current colorscheme in gvim the "format
> > > >> chatacters"
> > > >> appears.
> > > >> Is there any way to ensure that "format" characters will stay hidden
> > > >> always?
>
> > > > After changing your colorscheme, you should run...
>
> > > > :Refresh
>
> > > > ...to get Txtfmt back in synch. This command can also be used when you
> > have
> > > > changed Txtfmt options and wish to have them take effect immediately
> > (i.e.,
> > > > without restarting Vim or reloading the buffer).
>
> > > > Let me know if any of this is unclear...
>
> > > > Thanks,
> > > > Brett Stahlman
>
> > > > ...[snip]...
>
> > > > --
> > > > 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, visithttp://www.vim.org/maillist.php
>
> > > --
> > > Un saludo
> > > Best Regards
> > > Pablo Giménez- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -
>
> > --
> > 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, visithttp://www.vim.org/maillist.php
>
> --
> Un saludo
> Best Regards
> Pablo Giménez- 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.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
--
Un saludo
Best Regards
Pablo Giménez
--
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:
Post a Comment