How do you highlight search matches in Vim?
Answer
set hlsearch
Explanation
Use set hlsearch to highlight all matches of the last search pattern. Clear highlights with :nohlsearch (or :noh for short).
set hlsearch
Use set hlsearch to highlight all matches of the last search pattern. Clear highlights with :nohlsearch (or :noh for short).