Vim Cheat Sheet
A searchable, printable Vim reference — modes, motions, editing, search & replace, windows, buffers and registers. Free.
Modes
9Esc
i / a
I / A
o / O
v
V
Ctrl-v
R
:
Motions
10h j k l
w / b
e / ge
0 / ^ / $
gg / G
42G / :42
{ / }
%
f x / t x
Ctrl-d / Ctrl-u
Editing operators
11x / X
dd / D
dw / diw
cc / C
ciw / ci"
yy / yw
p / P
r x / ~
u / Ctrl-r
.
>> / <<
Visual mode
9v / V
Ctrl-v
o
d / y
c
> / <
gu / gU
gv
I / A
Search & replace
9/pattern
?pattern
n / N
* / #
:%s/old/new/g
:%s/old/new/gc
:s/old/new/g
:%s/\<word\>/x/g
:noh
Windows & tabs
8:sp / :split
:vsp / :vsplit
Ctrl-w h/j/k/l
Ctrl-w w
Ctrl-w q / c
Ctrl-w o
Ctrl-w =
:tabnew / gt / gT
Buffers & files
9:e file
:w / :w file
:wq / :x / ZZ
:q / :q!
:ls / :buffers
:b name / :bN
:bn / :bp
:bd
:wa / :qa
Registers & marks
8"ayy
"ap
"+y / "+p
:reg
ma
`a / 'a
``
:marks
Macros
7qa
q
@a
@@
5@a
:%normal @a
"ap → edit → "ay$
No entry matches “:q”.
About Vim Cheat Sheet
This Vim cheat sheet maps the editor by concept: modes, motions, editing operators, visual mode, search and replace, windows and tabs, buffers and files, registers and marks, and macros. Each row is a keystroke or command with a one-line description of what it does.
Vim rewards muscle memory, and the fastest way to build it is having the right motion or operator in front of you when you need it. The sheet keeps the composable pieces — operators, motions, counts — grouped so the grammar of Vim stays visible rather than memorized one keybinding at a time.
It is free and fully client-side: filter every keystroke live with the search box, jump between sections from the sticky table of contents, click to copy an Ex command, and print the sheet — the classic way to learn Vim is with a printout beside the keyboard.
How to use Vim Cheat Sheet
- Start with the Modes section if you are new, or jump straight to Motions and Editing operators.
- Search for an action like delete, replace or macro to filter the whole sheet.
- Use the sticky table of contents to hop to sections such as Registers & marks or Windows & tabs.
- Click a command or its copy icon to copy Ex commands like search-and-replace patterns.
- Print the sheet and keep it next to your keyboard while the motions become muscle memory.