:call matchadd('ColorColumn','pattern1')
:call matchadd('ErrorMsg','pattern2')
The first parameter of matchadd is "grou" - you can get a list of
predefined groups using this
:highlight
On Fri, Sep 24, 2010 at 2:42 PM, robert song <robertsong.japan@gmail.com> wrote:
> Hi, everyone.
>
> Sometimes it's useful to display different keywords in different
> colors, here I can use * to highlight the word under cursor, but how
> to highlight the other keywords in some other colors at the same time ?
>
> Best Wishes,
> robert
>
> --
> 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
>
--
Regards,
Kashyap
--
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