Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preserving equal sized split view

Tags:

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.

like image 817
Gökhan Sever Avatar asked Mar 25 '10 21:03

Gökhan Sever


1 Answers

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

To do this automatically, you can use:

autocmd VimResized * wincmd = 
like image 174
Cascabel Avatar answered Oct 18 '22 02:10

Cascabel