Skip to main content
7 events
when toggle format what by license comment
Jul 1, 2023 at 10:18 comment added Enlico @romainl, getmatches returns a list of {'group': ?, 'pattern': ?, 'priority': ?, 'id': ?}, so it's not about the list of matches relative to one matchadd command.
Jun 30, 2023 at 16:20 comment added Enlico I've also asked a follow up question here.
Jun 30, 2023 at 16:01 comment added Enlico @Hoblovski, it seems to work, thanks!
Jun 29, 2023 at 13:51 comment added Hoblovski Does this link help? Restoring the cursor position from backtick register works for me; simply put let a = getpos("'`") | call cursor(a[1], a[2]) after the execute line.
Jun 29, 2023 at 7:17 comment added Christian Brabandt the searchcount() function accepts a pattern argument! See also this answer which shows a complete example for the searchcount() function. You just need to provide a pattern to it
Jun 29, 2023 at 5:38 comment added romainl :help getmatches() is mentioned at the bottom of :help matchadd().
Jun 28, 2023 at 18:43 history asked Enlico CC BY-SA 4.0