One can use the matchadd
function to add to groups of matches that will be highlighted in the VIM editor.
But how does one jump between the matches within a specific group?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this community
getmatches
, but sincematchadd
takes a pattern I would either/pattern
or:vimgrep /pattern/ %
:h getmatches()
could be useful: it returns the matches you added withmatchadd()
so maybe you can use this command to get the patterns and then use these patterns in a search.