How to refresh vim layout when split

29

10

After setting up some splits/vsplits and resizing gvim or the console running vim, splitter positions are not updated. Is there a way to force updating splitter positions (by retaining them in the same relative position, say split at 50% of the current view)?

ron

Posted 2011-03-07T11:19:54.670

Reputation: 423

Answers

41

CTRL+W is all things splits:

  • CTRL+W,+ - enlarges the current split panel
  • CTRL+W,- - shrinks the current split panel
  • CTRL+W,= - evens the split panels size
  • CTRL+W,CTRL+W - moves the focus to the next split panel

I believe you're looking for CTRL+W,=

Cyber Oliveira

Posted 2011-03-07T11:19:54.670

Reputation: 596