Thank you everyone for your kind help. Until now I only succeeded in Sven's 
method.

I guess what I should do in the future is:

:syn match search_pattern "\<search_pattern\>"
:hi search_pattern ctermbg=color guibg=color

Is this correct? thanks



在 2014年12月24日星期三UTC+8下午5时14分02秒,skyworld写道:
> Hi,
> 
> normally I use gvim instead of vi. My question is for gvim is: can i use 
> different color to show diffent word?  For example, I would like to highlight 
> word "red" with red and "yellow" with color yellow in one document. Is this 
> possible?  thanks

-- 
-- 
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 because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to