Skip to content

Instantly share code, notes, and snippets.

@andion
Forked from afair/tmux.cheat
Last active May 25, 2016 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andion/533c7a64de9dfa0dffa6e6eb499ede85 to your computer and use it in GitHub Desktop.
Save andion/533c7a64de9dfa0dffa6e6eb499ede85 to your computer and use it in GitHub Desktop.
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
========================================== Goto # ^b <0-9>
CONTROLS Next ^b n
========================================== Previous ^b p
Choose ^b w <name>
Detach ^b d
List ^b = ==========================================
Buffer ^b <PgUpDn> PANE (SPLIT WINDOW)
Command ^b : <command> ==========================================
Copy ^b [ ... <space> ... <enter> Show # ^b q
Moving vim/emacs key bindings Split Horiz ^b " --------
Start <space> Split Vert ^b % |
Copy <enter> Pane->Window ^b !
Paste ^b ] Kill ^b x
========================================== Reorganize ^b <space>
SESSION (Set of Windows) Expand ^b <alt><arrow>
========================================== Resize ^b ^<arrow>
Resize x n ^b <n> <arrow>
New ^b :new ^b :new -s <name>
Rename ^b $ Select ^b <arrow>
List ^b s Previous ^b {
Next ^b ( Next ^b }
Previous ^b ) Switch ^b o other
Swap ^b ^o
Last ^b ;
============================================================================================
NERD tree (5.0.0)
============================================================================================
==========================================
File node mappings~
==========================================
double-click,
<CR>,
o: open in prev window
go: preview
t: open in new tab
T: open in new tab silently
middle-click,
i: open split
gi: preview split
s: open vsplit
gs: preview vsplit
==========================================
Bookmark table mappings~
==========================================
double-click,
o: open bookmark
t: open in new tab
T: open in new tab silently
D: delete bookmark
==========================================
Tree navigation mappings~
==========================================
P: go to root
p: go to parent
K: go to first child
J: go to last child
<C-j>: go to next sibling
<C-k>: go to prev sibling
==========================================
Filesystem mappings~
==========================================
C: change tree root to the
selected dir
u: move tree root up a dir
U: move tree root up a dir
but leave old root open
r: refresh cursor dir
R: refresh current root
m: Show menu
cd:change the CWD to the
selected dir
CD:change tree root to CWD
==========================================
Tree filtering mappings~
==========================================
I: hidden files (off)
f: file filters (on)
F: files (on)
B: bookmarks (off)
==========================================
Custom mappings~
==========================================
q: Close the NERDTree window
A: Zoom (maximize-minimize)
the NERDTree window
?: toggle help
"
==========================================
Bookmark commands~
==========================================
:Bookmark [<name>]
:BookmarkToRoot <name>
:RevealBookmark <name>
:OpenBookmark <name>
:ClearBookmarks [<names>]
:ClearAllBookmarks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment