Take the 2-minute tour ×

In hlsearch mode, seems that you can set only one color.

Now I want to use a script to get multiple colors for multiple keywords, is that possible?

share|improve this question
add comment

1 Answer

Yes, it is possible. Vim Tip 1572 ("Highlight multiple words") and its discussion page contains several methods/scripts.

You can also use the Mark--Karkat script.

share|improve this answer
add comment

Your Answer


