Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

in vim, with

 C-W =

the windows are auto resized to the same height.

in tmux, with

 :resize-pane -U 10

I can increment the height of tmux pane in 10.

how I can auto resize the panes to the same height ?

share|improve this question
up vote 35 down vote accepted

I suggest resizing multiple panes with one of the five tmux presets:

C-b M-1             # vertical split, all panes same width
C-b M-2             # horizontal split, all panes same height
C-b M-3             # horizontal split, main pane on top,
                      other panes on bottom, vertically split, all same width
C-b M-4             # vertical split, main pane left,
                      other panes right, horizontally split, all same height
C-b M-5             # tile, new panes on bottom, same height before same width

M denotes the meta key, usually bound to ALT.

On Macs the meta key is usually Esc, as mentioned in the comment below.

See the tmux manpage for more information.

share|improve this answer
M for 'meta', not 'magic' :) On Macs (not specified in the question, just for the benefit of any Mac users that might read this) it's usually the Escape key. – chepner Aug 2 '12 at 16:33
@chepner Now you made me taking all the magic from my reply... :( – speakr Aug 2 '12 at 21:40
+1 … I have a tmux compiled from source running on Linux and the default meta key is also Escape, rather than Alt. – Konrad Rudolph Feb 5 '13 at 9:54
useful to remap left option key to +Esc in iterm2 for macs. Prefs -> Profiles -> Keys -> Left option key acts as... setting. – Danny Nov 11 '14 at 14:37

PREFIX Space is shortcut for :next-layout

share|improve this answer
That little bit just... thank you! – flickerfly Jun 25 '15 at 14:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.