Skip to content

Instantly share code, notes, and snippets.

@mdang
Last active February 4, 2018 16:07
Show Gist options
  • Save mdang/e38aa1fe8019297971bf3489b2c55fe9 to your computer and use it in GitHub Desktop.
Save mdang/e38aa1fe8019297971bf3489b2c55fe9 to your computer and use it in GitHub Desktop.
Vim, tmux cheatsheet

tmux

Default prefix: C-b (CTRL + b)

Windows

Action Command
Create new window prefix + c
Cycle to next window prefix + n
Cycle to previous window prefix + p

Panes

Action Command
Split vertically prefix + %
Split horizontally prefix + "
Switch pane prefix + <arrow>
Close pane prefix + d
Toggle full screen pane prefix + z
Resize pane in direction of arrow prefix + C-<arrow key>

Sessions

Action Command
Detach current session prefix + d
Choose a session to detach prefix + D
  • To see a list of active sessions: tmux ls
  • To attach an open session: tmux attach -t <number>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment