Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I'm using :helpg session in my Vim.
I would like to highlight the pattern in the results like :set hls does for normal search.
Is there a way to do this?
:helpgrep word1.*word4 :helpgrep word1\|word4
I would use the match command:
" Open the quickfix buffer
" Use 'Search' highlighting group to highlight your pattern
:match Search /word1.*word4/
If you frequently perform these actions, you could create a custom command to combine them.
Required, but never shown