Esc
Return to normal mode
i
Insert before cursor
a
Insert after cursor (append)
I
Insert at beginning of line
A
Insert at end of line
o
Open new line below and insert
O
Open new line above and insert
v
Visual mode (character-wise)
V
Visual mode (line-wise)
Ctrl+v
Visual block mode (columns)
h j k l
Left, down, up, right
w
Next word start
b
Previous word start
e
End of current word
0
Start of line
^
First non-blank of line
$
End of line
gg
Top of file
G
Bottom of file
:42
Jump to line 42
42G
Jump to line 42 (alt)
Ctrl+d
Half page down
Ctrl+u
Half page up
Ctrl+f
Page down (forward)
Ctrl+b
Page up (back)
%
Matching bracket/paren
{ } Previous/next paragraph
x
Delete character under cursor
X
Delete character before cursor
dd
Delete (cut) line
dw
Delete word
d$
Delete to end of line
D
Delete to end of line (alt)
yy
Yank (copy) line
yw
Yank word
p
Paste after cursor
P
Paste before cursor
u
Undo
Ctrl+r
Redo
r<char>
Replace single character
R
Replace mode (overtype)
cw
Change word (delete + insert)
cc
Change line
.
Repeat last change
>> <<
Indent / outdent line
J
Join line below with current
/pattern
Search forward
?pattern
Search backward
n
Next match
N
Previous match
*
Search word under cursor
:%s/old/new/g
Replace all in file
:%s/old/new/gc
Replace with confirmation
:s/old/new/g
Replace on current line
:noh
Clear search highlight
:w
Save file
:w filename
Save as
:q
Quit
:q!
Quit without saving
:wq or ZZ
Save and quit
:e filename
Open file
:bn :bp
Next / previous buffer
:ls
List open buffers
:bd
Close current buffer
:split :vsplit
Horizontal / vertical split
Ctrl+w w
Switch between splits
Ctrl+w q
Close current split
Vim Cheat Sheet — Modes, Motions, Commands & Keyboard Shortcuts Reference
A searchable Vim quick reference covering modes (normal/insert/visual), movement, editing, search and replace, file operations, buffers, and splits.
About this cheatsheet
A comprehensive Vim cheatsheet organized by workflow: modes, movement, editing, search, and file management.
- 65+ Vim commands and shortcuts
- Modes: normal, insert, visual, block
- Movement: words, lines, pages, marks
- Editing: delete, yank, paste, change
- Search and replace with ranges
- Buffers, splits, and file ops
Free. No signup. Your inputs stay in your browser. Ads via Google AdSense (consent required).
By Marco B. ·