From 1a061f6ec879cbe37996a9fb930d2b77e91b9000 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Mon, 11 May 2020 13:50:54 +0530 Subject: [PATCH] nvim: keymappings: Miscellaneous key mappings Signed-off-by: Sanchayan Maity --- nvim/.config/nvim/keymappings.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nvim/.config/nvim/keymappings.vim b/nvim/.config/nvim/keymappings.vim index 8191377..1bdd288 100644 --- a/nvim/.config/nvim/keymappings.vim +++ b/nvim/.config/nvim/keymappings.vim @@ -170,3 +170,11 @@ nnoremap :sp :exec("tag ".expand("")) 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 +nnoremap