From 1721c8d62bd4d0b85243c9d1087f638463eedb23 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Fri, 15 May 2020 10:54:19 +0530 Subject: [PATCH] nvim: keymappings: Do not map j/k to gj/gk This does not work for line jump when you have relative numbers on and lines wrap around. Signed-off-by: Sanchayan Maity --- nvim/.config/nvim/keymappings.vim | 3 --- 1 file changed, 3 deletions(-) diff --git a/nvim/.config/nvim/keymappings.vim b/nvim/.config/nvim/keymappings.vim index deb6f21..8be164f 100644 --- a/nvim/.config/nvim/keymappings.vim +++ b/nvim/.config/nvim/keymappings.vim @@ -168,9 +168,6 @@ noremap 0 ^ " Just in case you need to go to the very beginning of a line noremap ^ 0 -" Make j and k move to the next row, not file line -nnoremap j gj -nnoremap k gk " Make dot work on visually selected lines vnoremap . :norm. " Go to the last file we changed