public
Created

tmux equal split vs. vim

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Not sure I understand what you want.
 
If you start from
-------------------------
|...........|...........|
|...........|...........|
|...........|-----------|
|...........|.....|.....|
|...........|.....|.....|
-------------------------
 
what would you want as result?
 
AFAIK, what *vim* would do is to make this:
 
 
-------------------------
|.......|...............|
|.......|...............|
|.......|---------------|
|.......|.......|.......|
|.......|.......|.......|
-------------------------
 
i.e. equalize the width (resp. height) of the panes that aren't split vertically (resp. horizontally).
 
Is it what you want to achieve?

Yes. That is exactly it. The vertical splits are balanced, and the horizontal splits are balanced. Bingo!

I'm aware that I can do "^b :resize-pane -U 20", and the like, but I don't want to spend my day counting pixels to balance my windows. I just want a single shortcut that does it for me.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.