From 6b342427acc1f1a07468a74a1f252095943b07f6 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 9 Aug 2021 11:38:06 +0200 Subject: [PATCH] Improve Vim list jumping --- vim/plugin/shame.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vim/plugin/shame.vim b/vim/plugin/shame.vim index 5317c6f..7671568 100644 --- a/vim/plugin/shame.vim +++ b/vim/plugin/shame.vim @@ -582,10 +582,10 @@ endfun noremap :call saveprompt() nnoremap :bnext nnoremap :bprevious -nnoremap j :lnext -nnoremap k :lNext -nnoremap j :cnext -nnoremap k :cNext +nnoremap j :lnext \| normal zt +nnoremap k :lNext \| normal zt +nnoremap j :cnext \| normal zt +nnoremap k :cNext \| normal zt nnoremap Bi i nnoremap Ea a " This one does nothing, but I'm adding it to remember not to remap the tab key