summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/.vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 4c97986..4d2b8c8 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -89,6 +89,11 @@ set completeopt=menuone,preview
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
nnoremap <C-b> :b
+ " When moving more lines make it a jump. If couns i 2 it will run m'2j,
+ " thus storing it on the jumplist and then jumping
+ nnoremap <expr> j (v:count > 1 ? "m'" . v:count : '' ) . 'j'
+ nnoremap <expr> k (v:count > 1 ? "m'" . v:count : '' ) . 'k'
+
" Leader stuff
let mapleader=" "