Skip to content

Instantly share code, notes, and snippets.

@soli
Created February 29, 2012 16:53
Show Gist options
  • Save soli/1942422 to your computer and use it in GitHub Desktop.
Save soli/1942422 to your computer and use it in GitHub Desktop.
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
Copy link

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