Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

In VIM, how can I search for multiple strings and have a different color highlight for each match?

share|improve this question
Maybe this helps you:… – Bernhard Feb 24 '12 at 9:47

1 Answer 1

There is MultipleSearch plugin for vim. Description:

MultipleSearch allows you to have the results of multiple searches displayed on the screen at the same time. Each search highlights its results in a different color, and all searches are displayed at once. After the maximum number of colors is used, the script starts over with the first color.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.