Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

tmux equal split vs. vim

View gist:1942422
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.