vim: added more hotkeys for interaction with windows.

This commit is contained in:
Andrey Parhomenko 2022-11-22 17:23:09 +05:00
parent ecd2fb1f6f
commit 0f14a70a1a

View file

@ -58,14 +58,21 @@
nmap <S-Tab> << nmap <S-Tab> <<
nmap <Space> i<Space><Esc> nmap <Space> i<Space><Esc>
nmap <Backspace> i<Backspace><Esc>l nmap <Backspace> i<Backspace><Esc>l
imap <M-a> <Esc>
imap <C-Space> <Esc>
" Windows.
nmap <C-l> <C-w>l nmap <C-l> <C-w>l
nmap <C-h> <C-w>h nmap <C-h> <C-w>h
nmap <C-j> <C-w>j nmap <C-j> <C-w>j
nmap <C-k> <C-w>k nmap <C-k> <C-w>k
imap <M-a> <Esc> nmap <C-V> <C-W>v
imap <C-Space> <Esc> nmap <C-S> <C-W>s
nmap + <C-W>+ nmap + <C-W>+
nmap - <C-W>- nmap - <C-W>-
nnoremap <silent> <C-]> :vertical resize +4<CR>
nnoremap <silent> <C-[> :vertical resize -4<CR>
cnoremap <C-A> <Home> cnoremap <C-A> <Home>
cnoremap <C-F> <Right> cnoremap <C-F> <Right>
cnoremap <C-B> <Left> cnoremap <C-B> <Left>