On Apr 4, 5:03 pm, Michael Maurer <salogynso...@gmail.com> wrote:
> * Brett Stahlman <brettstahl...@comcast.net> [04.04.2009 22:32]:
>
>
>
>
>
> > > > Thanks,
> > > I don't know if it's the way my terminals are set up, or maybe I need to
> > > compile vim with some extra optioni (latest stable with ruby support),
> > > but I get this when I do
> > > :MakeTestPage
>
> > >http://michaelmaurer.net/images/gnometerminal.pnghttp://michaelmaurer...
>
> > > I put this in my .vimrc
>
> > > set t_Co=256
> > > set term=gnome-256color
>
> > > but get no change (I dl'd the ncurses-term package you specified) .
>
> > Mike,
> > Thanks for the screenshots. What colorscheme are you using? It
> > shouldn't matter in the GUI, but for a cterm, if the colorscheme
> > doesn't set the background color of the Normal group, Txtfmt has to
> > rely upon the Ignore group to hide the tokens. The Ignore group is one
> > of the Vim default groups, whose purpose is to conceal tokens;
> > however, some colorschemes define this group in such a way that tokens
> > are not hidden. This is described more fully in the Txtfmt help.
> > (:help txtfmt-cterm-ignore-issue) You can check to see whether your
> > colorscheme hides text in the Ignore group by doing...
> > :hi Ignore
> > ...and checking to see whether the "xxx" is visible. Is Ignore text
> > visible to you?
>
> > Thanks,
> > Brett S.
>
> I tried :hi Ignore but got no results, :hi Ignore ctermfg=black did the
> trick

The point of :hi Ignore was simply to let you see whether your
colorscheme hides text in the Ignore group. If it did, you wouldn't be
able to see the "xxx" output by the :hi Ignore command. Judging from
your initial screenshots, I'd guess that your colorscheme doesn't hide
Ignore'd text, but actually displays it as white or off-white on a
fairly dark background. One way to fix this would be to use a
colorscheme that hides Ignore text. About half of the distributed ones
do. If you like the colorscheme you're using, though, there are
several other possible solutions... You can figure out what the
background color is (sounds as though black is close, but not quite
right), then define the Ignore group ctermfg to match it. Another
possibility is to figure out what the Normal background color is and
set it explicitly before Txtfmt loads, like so...
:hi Normal ctermbg=black
When the Normal group's ctermbg has been set explicitly, Txtfmt
doesn't rely upon the Ignore group to hide tokens. Note, however, that
this works only if the Normal group's background color has been set
prior to the load of Txtfmt. (If you've already loaded Txtfmt, you can
simply use :Refresh to make Txtfmt take the new setting into account.)


>
> http://michaelmaurer.net/images/gnometerm2.pnghttp://michaelmaurer.net/images/xterm2.png
>
> But when you look at the gnome-terminal screenshot, you can still see the
> fine lines of the chinese (?) characters inside the colored space.
> Another problem is the fact that italic text doesn't get displayed. I've
> tried switching fonts, but Monospace should be able to display this
> anyway. rxvt-unicode displays everything alright, but gnome-terminal
> should support unicode.. argh.

I have noticed that some terminals (e.g gnome-terminal) don't display
italic properly. I'll investigate, but I don't believe there's
anything Txtfmt can do beyond ensuring that the Vim syntax region has
the italic attribute. Is the gnome-terminal the only one that displays
the remnants of the oriental looking characters?

Thanks,
Brett S.

>
> - Mike
>
> --
> "How I helped build the bomb that blew up Wall 
> Street."http://michaelmaurer.net/archives/2009/04/04/how_i_helped_build_the_b...
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to