From c94132b1e6945d01971150070069ff12136a10f8 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sun, 10 May 2020 20:42:16 +0530 Subject: [PATCH] nvim: keymappings: Better behaviour for '0' Signed-off-by: Sanchayan Maity --- nvim/.config/nvim/keymappings.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nvim/.config/nvim/keymappings.vim b/nvim/.config/nvim/keymappings.vim index 19e629b..8191377 100644 --- a/nvim/.config/nvim/keymappings.vim +++ b/nvim/.config/nvim/keymappings.vim @@ -164,3 +164,9 @@ nnoremap :WhichKey ',' " Tag helpers nnoremap :vsp :exec("tag ".expand("")) nnoremap :sp :exec("tag ".expand("")) + +" Move across wrapped lines like regular lines +" Go to the first non-blank character of a line +noremap 0 ^ +" Just in case you need to go to the very beginning of a line +noremap ^ 0