diff options
author | Cody Hiar <cody@hiar.ca> | 2020-01-27 12:05:20 -0700 |
---|---|---|
committer | Cody Hiar <cody@hiar.ca> | 2020-01-27 12:05:20 -0700 |
commit | aa2f7ebde404d813e40ec1c4da14f836b2741533 (patch) | |
tree | 3852330524535846c613b3fb3cea51dce9fb727f | |
parent | 211f11b6631096453458bd3c68d6fa5d6f83ba0d (diff) |
Add numbered jumps to jump list
-rw-r--r-- | plugin/vim-options.vim | 3 |
1 files changed, 3 insertions, 0 deletions
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 <leader>erm :call Rm()<CR> +" Add numbered jumps to the jump list +nnoremap <expr> k (v:count > 1 ? "m'" . v:count : '') . 'k' +nnoremap <expr> j (v:count > 1 ? "m'" . v:count : '') . 'j' |