it8wka
Last Updated: February 25, 2016
·
1.537K
· dmedvinsky

Vim: resplit after window size change

Tired of having one of your splits reduced to couple of columns after unmaximizing the Vim window? Make them splits equal size after resizing window:

augroup Misc
    autocmd!
    autocmd VimResized * exe "normal! \<c-w>="
augroup END