Skip to content

@soli /gist:1942422
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tmux equal split vs. vim
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?
@atoponce

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.