How to search for and highlight multiple strings in VIM

colorssearchvim

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

Best Answer

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.

Related Question