Browse Source

[vimrc] Keep splits balanced when resizing term window

merge-requests/1/merge
lhark 8 years ago
parent
commit
3aa2cb723b
  1. 3
      vimrc

3
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
if has("autocmd")
autocmd User ALELint call s:MaybeUpdateLightline() 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…
Cancel
Save