[vimrc] Keep splits balanced when resizing term window
This commit is contained in:
parent
2b134daba4
commit
3aa2cb723b
1 changed files with 4 additions and 1 deletions
5
vimrc
5
vimrc
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue