nvim: additional keybinds for moving between windows
This commit is contained in:
parent
bf5fd79a68
commit
0ddd772486
1 changed files with 10 additions and 0 deletions
|
@ -84,6 +84,16 @@ vim.cmd [[
|
|||
" Replace with alt S
|
||||
nnoremap <M-s> :%s//g<Left><Left>
|
||||
|
||||
nnoremap <silent> <Leader>= :exe "resize " . (winheight(0) * 3/2)<CR>
|
||||
nnoremap <silent> <Leader>+ :exe "resize " . (winheight(0) * 3/2)<CR>
|
||||
nnoremap <silent> <Leader>- :exe "resize " . (winheight(0) * 2/3)<CR>
|
||||
|
||||
" Switch panes with ctrl hjkl
|
||||
nnoremap <C-h> <C-w>h
|
||||
nnoremap <C-j> <C-w>j
|
||||
nnoremap <C-k> <C-w>k
|
||||
nnoremap <C-l> <C-w>l
|
||||
|
||||
" Move lines around in visual mode with J and K
|
||||
vnoremap J :m '>+1<CR>gv=gv
|
||||
vnoremap K :m '<-2<CR>gv=gv
|
||||
|
|
Loading…
Add table
Reference in a new issue