nvim: update tab and window keybindings, ag in hidden folders

This commit is contained in:
Benjamin Bädorf 2024-02-03 13:18:49 +01:00
parent 79f38313c6
commit d6cd678e92
Signed by: b12f
GPG key ID: 729956E1124F8F26
2 changed files with 13 additions and 9 deletions

View file

@ -45,15 +45,19 @@ nnoremap K L
nnoremap I H nnoremap I H
nnoremap H I nnoremap H I
map <c-w>i :wincmd k<CR> map <leader>wi :wincmd k<CR>
map <c-w>j :wincmd h<CR> map <leader>wj :wincmd h<CR>
map <c-w>k :wincmd j<CR> map <leader>wk :wincmd j<CR>
map <c-w>l :wincmd l<CR> map <leader>wl :wincmd l<CR>
map <c-w>I :wincmd K<CR> map <leader>wI :wincmd K<CR>
map <c-w>J :wincmd H<CR> map <leader>wJ :wincmd H<CR>
map <c-w>K :wincmd J<CR> map <leader>wK :wincmd J<CR>
map <c-w>L :wincmd L<CR> map <leader>wL :wincmd L<CR>
map <leader>tj :tabprevious<CR>
map <leader>tl :tabnext<CR>
map <leader>tq :tabclose<CR>
" replay macro for each line of a visual selection " replay macro for each line of a visual selection
xnoremap @q :normal @q<CR> xnoremap @q :normal @q<CR>

View file

@ -80,7 +80,7 @@ let g:user_emmet_leader_key='<c-n>'
" Ack " Ack
if executable('ag') if executable('ag')
let g:ackprg = 'ag --vimgrep' let g:ackprg = 'ag --hidden --vimgrep'
endif endif
" nnn " nnn