From b95d4d487baf74fb4cd92010b68ffd9d93d4172e Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 16 Oct 2024 22:02:17 -0400 Subject: [PATCH] Allow moving the cursor with ctrl+hjkl --- vim/config/keyboard.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 7e41f3a..a58ed1e 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -123,9 +123,13 @@ " " | (N) -> move four lines up " | (N) -> move four lines down +" | (N) -> move four lines up +" | (N) -> move four lines down " " | (N) -> move one word right " | (N) -> move one word left +" | (N) -> move one word right +" | (N) -> move one word left " " | (A) -> move the screen up " | (A) -> move the screen down @@ -488,10 +492,14 @@ "map ctrl+up/down to moving the cursor up and down by 4 lines nnoremap 4k nnoremap 4j + nnoremap 4k + nnoremap 4j "map ctrl+right/left to moving the cursor left and right by one word nnoremap nnoremap + nnoremap + nnoremap "map alt+direction to moving the viewport in that direction noremap