On Wed, Dec 10, 2008 at 10:20 AM, fritzophrenic wrote:
>
> On Dec 10, 7:29 am, jack 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.

I wrote a plugin that wraps this method when someone on #vim asked for
this very thing, once upon a time.  It's never been terribly useful to
me, but I can see how someone might want it, once in a while...

http://www.vim.org/scripts/script.php?script_id=2028

> 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).

~Matt

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

Reply via email to