Resizing vim windows with arrow keys - 01-11-20

If your comfortable in vim you only use the j,h,k,l movement keys leaving the arrow keys open to do something more useful like window resizing!

" Remap arrow keys to resize window
nnoremap <Up>    :resize -2<CR>
nnoremap <Down>  :resize +2<CR>
nnoremap <Left>  :vertical resize -2<CR>
nnoremap <Right> :vertical resize +2<CR>
asciicast

demo window resizing

\- [ vim ]