How do I highlight multiple words in vim?
Solution 1:
I found the script.
You can download the script at here.
http://www.vim.org/scripts/script.php?script_id=2666
Just \m on the word you want to highlight.
You could select visual block then \m
And you could add more colors.
Solution 2:
If you are fine with multiple words being highlighted in the same color, simply go to search mode (type /
in normal mode) and search words that are separated by \|
/word_1\|word_2\|word_3
You can use n
and N
to navigate as usual.