Is there a way for vim to resize windows automatically after a terminal has been resized (or reattached from a different computer as in the case of 'screen')?

It should already resize them (it does here, both in gvim on Win32 and vim within a console on Linux/OpenBSD), but perhaps not in the way you want. IIUC, it merely expands the bottom/right windows if you make the screen area larger, and steals space from windows above/right of the bottom/right windows in the event you make the screen area smaller.

You can use control+W followed by "=" to make them equal-ish. If you want Vim to do this automatically, you can simply add

        au VimResized * wincmd =

to your vimrc.

-tim




Reply via email to