[vimrc] Keep splits balanced when resizing term window

This commit is contained in:
lhark 2018-08-01 16:56:01 -04:00
parent 2b134daba4
commit 3aa2cb723b

5
vimrc
View file

@ -514,7 +514,10 @@ function! LineInfo()
return !&binary ? '%3l:%-2v' : '%3l:%-2v off:%o,0x%O' return !&binary ? '%3l:%-2v' : '%3l:%-2v off:%o,0x%O'
endfunction endfunction
autocmd User ALELint call s:MaybeUpdateLightline() if has("autocmd")
autocmd User ALELint call s:MaybeUpdateLightline()
autocmd VimResized * wincmd =
endif
" Update and show lightline but only if it's visible (e.g., not in Goyo) " Update and show lightline but only if it's visible (e.g., not in Goyo)
function! s:MaybeUpdateLightline() function! s:MaybeUpdateLightline()