From d6cd678e92726ac978f8f9d624add4d757585d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Sat, 3 Feb 2024 13:18:49 +0100 Subject: [PATCH] nvim: update tab and window keybindings, ag in hidden folders --- modules/terminal-life/nvim/init.vim | 20 ++++++++++++-------- modules/terminal-life/nvim/plugins.vim | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/modules/terminal-life/nvim/init.vim b/modules/terminal-life/nvim/init.vim index 6bf8c2f..267349e 100644 --- a/modules/terminal-life/nvim/init.vim +++ b/modules/terminal-life/nvim/init.vim @@ -45,15 +45,19 @@ 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 + +map tj :tabprevious +map tl :tabnext +map tq :tabclose " replay macro for each line of a visual selection xnoremap @q :normal @q diff --git a/modules/terminal-life/nvim/plugins.vim b/modules/terminal-life/nvim/plugins.vim index 85891b1..4d1b3d2 100644 --- a/modules/terminal-life/nvim/plugins.vim +++ b/modules/terminal-life/nvim/plugins.vim @@ -80,7 +80,7 @@ let g:user_emmet_leader_key='' " Ack if executable('ag') - let g:ackprg = 'ag --vimgrep' + let g:ackprg = 'ag --hidden --vimgrep' endif " nnn