learntmux.dev

Split the window into panes

Goal

Window 0 has three panes: one on the left, two stacked on the right.

Two keys, one for each direction:

C-b %
split the active pane into left and right
C-b "
split it into top and bottom

The new pane becomes the active one, marked by the green border, so the next split lands there.

A pane is a rectangle of the window running its own program. One pane is active: typing goes there, and it is the default target for commands. The set of pane sizes and positions is the window’s layout.

Do this

Press C-b %.

The window splits into two panes side by side; the right one is active.

Press C-b ".

The right pane splits into top and bottom. Three panes, the bottom right active.

Why the flags are called -h and -v

The flag names behind these keys are the confusing part: split-window -h (horizontal) puts panes side by side, -v (vertical) stacks them. Think of the direction the new pane is added in, not the line between.

Stuck on this one?

This is a live terminal. Typing goes to the machine, including Tab. Press Shift and Tab together to move focus back out to the page.

A real terminal, in this tab

about 15 MB, once

session learn

Done when

not started
  1. Window 0 of session learn has three panes— not done yet
  2. Window 0 has one pane on the left and a right column split into two— not done yet