Home

Jump to next/previous matches added with matchaddpos().

It just defines one function: MatchJump(group, dir). You’re expected to map that yourself. For example to a command:

command! GoNextId :call MatchJump('goSameId', 'next')
command! GoPrevId :call MatchJump('goSameId', 'prev')

Or key:

nnoremap <Leader>n :call MatchJump('goSameId', 'next')<CR>
nnoremap <Leader>N :call MatchJump('goSameId', 'prev')<CR>
Copyright © 2010–2018 Martin Tournoij <martin@arp242.net>
This document is licensed under a cc-by 4.0 license.