Skip to main content
edited tags
Link
Friedrich
  • 4.8k
  • 1
  • 17
  • 32
Source Link
bitmask
  • 145
  • 8

How can I rebalance splits after the window size of the terminal changed?

I sometimes like using splits. Both vertical and horizontal, depending on the files I'm looking at. When creating a split, vim automatically halves the available size of, in my case, a terminal emulator like mate-terminal.

However, if I change the window size of that terminal, vim keeps the size of each split as it was, which I agree is a sensible default. I'm looking for a command to force vim to redistribute the available size anew as if I had opened a new split. Looking at :help split I only see various ways to open a new split, not to rearrange existing ones.