resizing shortcuts
This commit is contained in:
parent
541e2711d4
commit
e6cd05a869
15
vimrc
15
vimrc
|
@ -106,6 +106,9 @@ if &term == 'xterm-256color'
|
||||||
set termguicolors
|
set termguicolors
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
set guioptions-=mTrLb
|
||||||
|
set guioptions+=c
|
||||||
|
|
||||||
colorscheme customred256
|
colorscheme customred256
|
||||||
|
|
||||||
set backupdir=~/.vimtmp
|
set backupdir=~/.vimtmp
|
||||||
|
@ -152,14 +155,10 @@ nnoremap <C-l> <C-w>l
|
||||||
nnoremap <C-k> <C-w>k
|
nnoremap <C-k> <C-w>k
|
||||||
nnoremap <C-j> <C-w>j
|
nnoremap <C-j> <C-w>j
|
||||||
|
|
||||||
" better window resizing
|
nnoremap <leader>rj :resize -5<CR>
|
||||||
" need to use <Esc>j because urxvt sends the character prefixed with Escape
|
nnoremap <leader>rk :resize +5<CR>
|
||||||
" instead of setting the eighth bit
|
nnoremap <leader>rl :vertical resize +5<CR>
|
||||||
" see https://unix.stackexchange.com/a/199705
|
nnoremap <leader>rh :vertical resize -5<CR>
|
||||||
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>
|
|
||||||
|
|
||||||
"location list and quickfix mappings
|
"location list and quickfix mappings
|
||||||
nnoremap <leader>ll :botright lwindow<CR>
|
nnoremap <leader>ll :botright lwindow<CR>
|
||||||
|
|
Loading…
Reference in New Issue