Questions tagged [matchadd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
42 views

How can I match a regexp containing newlines?

When developing a vim plugin I'll publish soon, I want to highlight a text contained in a variable g:last_completion_text. Here below the code to define an highlight group named PrompterCompletion ...
Giorgio Robino's user avatar
0 votes
1 answer
49 views

What is the shortest search pattern that matches nowhere?

This is mostly a curiosity-driven question. I can't think of anything shorter than x\@=y, which tries to match x and y at the same position. A slightly longer, but probably more self-explaining ...
Enlico's user avatar
  • 2,172
2 votes
0 answers
207 views

Highlight groups stop working after sourcing vimrc

I'm working on a todo plugin for Neovim, using the remote plugin API. I set highlight groups and matching patterns in my script, and then register it with call remote#host#RegisterPlugin. When Neovim ...
F'1's user avatar
  • 121
1 vote
0 answers
105 views

Jump between all the matchadd matches for a group?

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?
leeand00's user avatar
  • 3,457