If I have a window with vim in it (windows that the window manager uses, not the vim windows), and then do a :vsp or :sp, then resize my window, the splits will not resize. I'd like, that when the window vim is in is resized, for the splits to be resized accordingly (ie. =).
I'm using gvim, but this should probably apply to both vim and gvim.
There's a VimResized
event available for autocommands, so you can use:
autocmd VimResized * exe "normal \<c-w>="
This seems to work fine with gvim, and for shrinking a terminal-based vim. But there's a bit of an issue with enlarging vim within a terminal, it doesn't redraw properly until some other action is taken.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With