Hello World

Be Happy!

Tmux Shortcuts Cheat Sheet (with Vi Copy Mode)


Pane Navigation

  • Ctrl-b o — next pane
  • Ctrl-b q + number — jump to pane
  • Ctrl-b ; — last active pane
  • Ctrl-b ↑/↓/←/→ — directional move

Window Navigation

  • Ctrl-b n / p — next/previous window
  • Ctrl-b 0-9 — jump to window by number
  • Ctrl-b l — last window
  • Ctrl-b w — interactive window picker

Sessions

  • Ctrl-b d — detach
  • Ctrl-b s — list/switch sessions
  • Ctrl-b $ — rename session

Creating / Closing

  • Ctrl-b c — new window
  • Ctrl-b % — split vertical
  • Ctrl-b " — split horizontal
  • Ctrl-b x — close pane
  • Ctrl-b & — close window
  • Ctrl-b z — zoom/unzoom pane
  • Ctrl-b ! — pane → window

Copy Mode (Vi Keys)

Enter with Ctrl-b [ (requires set-window-option -g mode-keys vi)

  • j / k — line down/up
  • Ctrl-d / Ctrl-u — half page down/up
  • Ctrl-f / Ctrl-b — full page down/up
  • g / G — top/bottom of buffer
  • / / ? — search forward/backward
  • n / N — next/previous match
  • v — start selection
  • V — select line
  • y — yank (copy)
  • q — exit copy mode
  • w / b — word forward/backward
  • 0 / $ — start/end of line
  • H / M / L — top/middle/bottom of screen

Misc

  • Ctrl-b : — command prompt
  • Ctrl-b ? — show all bindings
  • Ctrl-b Space — cycle pane layouts
  • Ctrl-b , — rename window
#vim (2) #tmux (1) #terminal (2) #shortcuts (1)
List