Is it possible to redraw vim's screen if I do the following:
- Vim in small 80x24 terminal
vsplit file2.c
- Maximize terminal
- It's all wonkey and I don't know how to make ti redraw the windows evenly.
Also it is possible set an autocommand to perform <C-w>=
each time when you resize a terminal.
au VimResized * if &equalalways | wincmd = | endif
&equalalways
is an option that resizes windows to equal after splitting / closing (set by default), so it is quite natural to use it here too.
For correctly adapting non-equal window splits, you can try my ProportionalResize plugin.
:redraw
command