resizing shortcuts

This commit is contained in:
ManjaroOne666 2018-02-10 11:41:22 +00:00
parent 541e2711d4
commit e6cd05a869
1 changed files with 7 additions and 8 deletions

15
vimrc
View File

@ -106,6 +106,9 @@ if &term == 'xterm-256color'
set termguicolors
endif
set guioptions-=mTrLb
set guioptions+=c
colorscheme customred256
set backupdir=~/.vimtmp
@ -152,14 +155,10 @@ nnoremap <C-l> <C-w>l
nnoremap <C-k> <C-w>k
nnoremap <C-j> <C-w>j
" better window resizing
" need to use <Esc>j because urxvt sends the character prefixed with Escape
" instead of setting the eighth bit
" see https://unix.stackexchange.com/a/199705
nnoremap <Esc>j :resize +5<CR>
nnoremap <Esc>k :resize -5<CR>
nnoremap <Esc>l :vertical resize +5<CR>
nnoremap <Esc>h :vertical resize -5<CR>
nnoremap <leader>rj :resize -5<CR>
nnoremap <leader>rk :resize +5<CR>
nnoremap <leader>rl :vertical resize +5<CR>
nnoremap <leader>rh :vertical resize -5<CR>
"location list and quickfix mappings
nnoremap <leader>ll :botright lwindow<CR>