How to convert 2 horizontal panes to vertical panes in tmux

tmux

After doing join-pane on 2 windows, you have 2 horizontal panes. How do I rearrange the panes to be vertical panes instead?

Best Answer

C-b space (bound to next-layout by default) cycles through available layouts, you can also use the select-layout command.

M-1 to M-5  Arrange panes in one of the five preset layouts: even-
            horizontal, even-vertical, main-horizontal, main-
            vertical, or tiled.

On OS X, M is Esc, i.e. Ctrl-b Esc-1.

See man tmux for more details.