stuyguy
stuyguy

Reputation: 257

Maintaining split window proportions when resizing window frame in gvim

I use gvim primarily on Windows with window splitting (:vsp, etc). I'd like them to maintain their proportions when I resize the frame (the GUI window). Is there an easy way to do this?

I.e., when I use :vsp, both left and right windows occupy 50% of the frame. Say I make the frame twice as wide. Now the left window is much smaller - it's split 25%/75%.

Upvotes: 2

Views: 521

Answers (1)

kev
kev

Reputation: 161614

Try this:

:au VimResized * wincmd =

When you resize the windows, :wincmd = will be called.

Upvotes: 4

Related Questions