Loading tool…
cheatsheet
iEnter insert mode before cursor
aEnter insert mode after cursor
EscReturn to normal mode
vEnter visual mode (character selection)
VEnter visual line mode
:Enter command-line mode
h j k lMove left, down, up, right
wJump to start of next word
bJump to start of previous word
0Jump to start of line
$Jump to end of line
ggGo to first line of file
GGo to last line of file
:nGo to line number n
xDelete character under cursor
ddDelete current line
yyCopy (yank) current line
pPaste after cursor
uUndo last change
Ctrl+rRedo last undone change
cwChange to end of word
/patternSearch forward for pattern
?patternSearch backward for pattern
nRepeat last search in same direction
:%s/old/new/gReplace all occurrences of old with new in file
:wSave file
:qQuit
:wqSave and quit
:q!Quit without saving
Get new cheatsheets & tools in your inbox
No spam — just new releases, occasionally.