From 516ec7ca24b111f5324f4fca2101224957d217b2 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Fri, 2 Feb 2024 23:27:19 +0100 Subject: [PATCH] neovim: add hotkeys for tabs, remap windows --- modules/terminal-life/nvim/init.vim | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/modules/terminal-life/nvim/init.vim b/modules/terminal-life/nvim/init.vim index 6cea1bf5..5519140c 100644 --- a/modules/terminal-life/nvim/init.vim +++ b/modules/terminal-life/nvim/init.vim @@ -44,15 +44,15 @@ nnoremap K L nnoremap I H nnoremap H I -map i :wincmd k -map j :wincmd h -map k :wincmd j -map l :wincmd l +map wi :wincmd k +map wj :wincmd h +map wk :wincmd j +map wl :wincmd l -map I :wincmd K -map J :wincmd H -map K :wincmd J -map L :wincmd L +map wI :wincmd K +map wJ :wincmd H +map wK :wincmd J +map wL :wincmd L " replay macro for each line of a visual selection xnoremap @q :normal @q @@ -79,6 +79,15 @@ nmap q :bp bd # " Show all open buffers and their status nmap bl :ls +" +" Move to the next tab +nmap tl :tabnext + +" Move to the previous tab +nmap tj :tabprevious + +" Close the current tab +nmap tq :tabclose " Mapping selecting mappings nmap (fzf-maps-n)