From 53285f84038d5aa59c87824970095e6d1b3ce131 Mon Sep 17 00:00:00 2001 From: Julian T Date: Thu, 25 Apr 2019 22:16:16 +0200 Subject: [vim] counted j and k will be added to jumplist --- vim/.vimrc | 5 +++++ 1 file changed, 5 insertions(+) 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 pumvisible() ? "\" : "\" nnoremap :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 j (v:count > 1 ? "m'" . v:count : '' ) . 'j' + nnoremap k (v:count > 1 ? "m'" . v:count : '' ) . 'k' + " Leader stuff let mapleader=" " -- cgit v1.2.3