ellm
3/21/2017 - 1:40 PM

Command Cheatsheet

Command Cheatsheet

Vim

CommandDescription
Editing
dCut/Delete
ddCut/Delete entire line
pPaste line p (below) or P (above)
cChange (delete and then place into insert mode)
yYank (copy) y or yy (copy entire line including carriage return)
vEnter visual mode
uUndo
Ctrl + rRedo
Navigating
hjklh Left, j Down, k Up, l Right
0Go to beginning of line
$Go to end of line
ggGo to top of file
GGo to bottom of File
eGo to end of next word
wGo to beginning of next word
I AMove to beginning/end of line and insert I and A
O oInsert new line above/below current line and insert O (above) and o (below)
Motions
yiwYank inner Word
diwDelete in Word
cawChange all Word
di[Delete inside square brakets
di(Delete inside parens
"+pPastes system clipboard after cursor
"+yCopy Visually selected text to system clipboard
.Repeat last motion

Links


tmux

CommandDescription
tmux new -s session_namecreates a new tmux session named session_name
tmux attach -t session_nameattaches to an existing tmux session named session_name
tmux switch -t session_nameswitches to an existing session named session_name
tmux list-sessionslists existing tmux sessions
tmux detach (prefix + d)detach the currently attached session

Links