neovim: add hotkeys for tabs, remap windows
This commit is contained in:
parent
6fe751f458
commit
516ec7ca24
|
@ -44,15 +44,15 @@ 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>
|
||||||
|
|
||||||
" 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>
|
||||||
|
@ -79,6 +79,15 @@ nmap <leader>q :bp <BAR> bd #<CR>
|
||||||
|
|
||||||
" Show all open buffers and their status
|
" Show all open buffers and their status
|
||||||
nmap <leader>bl :ls<CR>
|
nmap <leader>bl :ls<CR>
|
||||||
|
"
|
||||||
|
" Move to the next tab
|
||||||
|
nmap <leader>tl :tabnext<CR>
|
||||||
|
|
||||||
|
" Move to the previous tab
|
||||||
|
nmap <leader>tj :tabprevious<CR>
|
||||||
|
|
||||||
|
" Close the current tab
|
||||||
|
nmap <leader>tq :tabclose<CR>
|
||||||
|
|
||||||
" Mapping selecting mappings
|
" Mapping selecting mappings
|
||||||
nmap <leader><tab> <plug>(fzf-maps-n)
|
nmap <leader><tab> <plug>(fzf-maps-n)
|
||||||
|
|
Loading…
Reference in a new issue