From f8872bea78cbe1b3fb80751bbb1bd666dea0b10a Mon Sep 17 00:00:00 2001 From: chawley Date: Fri, 1 Mar 2024 13:37:00 -0500 Subject: [PATCH] New keymaps for buffers/panes I'm experimenting with using the arrow keys: - -arrow left/right to switch buffers - -arrow left/right/up/down to navigate panes I left the old maps commented out in case this breaks something --- .vimrc | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.vimrc b/.vimrc index bce8b7e..d01b7de 100644 --- a/.vimrc +++ b/.vimrc @@ -198,9 +198,11 @@ nnoremap C :set cursorline! cursorcolumn! " --------------------------------------------------------------------------------------------------------------------- " ==> Keymaps: Buffers & Panes -" to navigate BUFFERS -nnoremap :bp -nnoremap :bn +" -arrow left/right to navigate BUFFERS +"nnoremap :bp +"nnoremap :bn +map [1;5D :bp +map [1;5C :bp " b to open FZF buffers map b :Buffers @@ -217,14 +219,23 @@ nnoremap :w " to bring up the copy buffer noremap "+ -" h/j/k/l to navigate PANES -nnoremap h -nnoremap l -nnoremap j -nnoremap k +" h/j/k/l to navigate panes +"nnoremap h +"nnoremap l +"nnoremap j +"nnoremap k -" x to close pane -nnoremap x q +" -arrow keys to navigate panes +" UP +map [1;3A +" DOWN +map [1;3B +" LEFT +map [1;3D +" RIGHT +map [1;3C +" CLOSE +map x q " --------------------------------------------------------------------------------------------------------------------- " ==> Keymaps