fritzophrenic wrote:
>
>
> On Dec 10, 7:29 am, jack <[EMAIL PROTECTED]> wrote:
>> sorry gays for my misleading request,
>> what i want is how to change the background colors of some lines
>>
>
> Vim is not really meant to do that kind of thing...it's a text editor,
> not a word processor or WSIWYG publication platform.
>
> However, there are a few ways.
>
> One way is using the txtfmt plugin:
> http://www.vim.org/scripts/script.php?script_id=2208
>
> Another way is to use :match, :2match, :3match, or matchadd().
> See :help :match, :help matchadd(). This way will not be permanent in
> any way, shape, or form.
>
> A final way would be to define syntax highlighting rules, but I don't
> think that's what you want. These are usually associated with file
> type.
>
> Note that, even using txtfmt, the colors will only show up in Vim, or
> if you use the 2html feature. I believe this is discussed in the
> txtfmt documentation (though I don't use it at all, so I could be
> wrong).
Yes. Txtfmt lets you highlight your plain text documents with 8 colors
and either 3 or 6 format attributes (bold, underline, italic, and if
"long" format mode is used, standout, reverse and undercurl as well).
Caveat: Currently, only foreground text color may be set with Txtfmt.
I've been intrigued by the possibility of adding background color to the
mix. I believe doing so is possible, and may also be feasible, provided
that "short" formats are used (bold, underline, italic only). The reason
for this restriction is that with "long" formats, the number of syntax
regions processed by Vim might become prohibitively large. (If you doubt
this, do a :syntax command in a txtfmt buffer using "long" formats and
then be prepared to hit the space bar a lot of times.) At any rate, I'll
have to do some prototyping when I get some time...
Brett Stahlman
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---