From aa2f7ebde404d813e40ec1c4da14f836b2741533 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Mon, 27 Jan 2020 12:05:20 -0700 Subject: Add numbered jumps to jump list --- plugin/vim-options.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index 19cc08b..c0d3c5f 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -133,6 +133,9 @@ function! Rm() :call delete(expand('%')) | bdelete! endfunction nnoremap erm :call Rm() +" Add numbered jumps to the jump list +nnoremap k (v:count > 1 ? "m'" . v:count : '') . 'k' +nnoremap j (v:count > 1 ? "m'" . v:count : '') . 'j' -- cgit v1.2.3