Surligner plusieurs recherches en parallèle dans vim et de plusieurs couleurs.
:match Pmenu /pattern2/ (2)
:2match Error /pattern3/ (3)
:3match MatchParen /pattern4/ (3)
|A vim search pattern here is a kind of regular expression, so you can highlight different words with a single pattern, but the color will be the same for each match
match command you can highlight other patterns with different colors. The first parameter of the command is the
highlight-group to use, it’s part of the syntax highlighting mechanism of vim and it specifies the color that will be given to your matchs (to see all available groups type
:highlight) here I chose
Pmenu it’s a pink for me.
|To add another group, you can use the commands :
3match with other
hightlight-group names, here I chose
Error (red) and
MatchParen (turquoise). If you have a valide usecase with a need for more than 4 highlight colors, I would be happy to discover it.