1 of 2
jecxjo
  • 2.7k
  • 13
  • 24

Per a post on /r/vim, you can add numbered jumps by setting the previous context mark. These two lines will only set the mark when jumping more than 1 time (i.e. must be numbered like 3k or 20j)

nnoremap <expr> k (v:count > 1 ? "m'" . v:count : '') . 'k'
nnoremap <expr> j (v:count > 1 ? "m'" . v:count : '') . 'j'
jecxjo
  • 2.7k
  • 13
  • 24