Friday, September 24, 2010

RE: How to highlight different keywords with different colors?

Hello,

You can use a useful script named "Mark", which shall meet your need
that
Multisearch with multicolor highlight. To just place your cusor upon
different
Keywords in common mode then run '\m' to highlight every keywords
throughout your
File. Or '\r' following a regex to define the pattern to be highlighted.
Here is the link to download:
http://www.vim.org/scripts/script.php?script_id=1238

-----Original Message-----
From: vim_use@googlegroups.com [mailto:vim_use@googlegroups.com] On
Behalf Of robert song
Sent: Friday, September 24, 2010 5:13 PM
To: vim_use@googlegroups.com
Subject: How to highlight different keywords with different colors?

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

--
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: