tags:

views:

17

answers:

1

Hello,

I start GVIM in not-maximized window mode and split its window horizontally making sure the windows are equally sized. How can I preserve this equal-sized split view when I maximize the main GVIM window? Whenever I maximize GVIM forgets that the windows have been equally split.

Thanks.

+3  A: 

The command to equalize splits is ^W= (ctrl-W =), or in a script, wincmd =.

Edit: see my comment for how to do this automatically!

Jefromi
How can I make this auto-trigger itself whenever the size of the main GVIM window changed?
Gökhan Sever
Place in your vimrc, or run in command-line mode: `autocmd VimResized * wincmd =`
Jefromi
Thanks, exact solution :)
Gökhan Sever