› Vim

Vim Shortcuts

Vim and Neovim keyboard shortcuts — modal editing, navigation and commands. v9.x

Source: Official documentation · Dataset date 2026-06

60
Shortcuts
6
Categories

Cheat sheet guide

Vim shortcuts worth learning first

This page collects 60 searchable Vim keyboard shortcuts across 6 categories. Start with the shortcuts for Modes, Navigation, Editing, Search & Replace, then print the cheat sheet once the important ones are worth keeping nearby.

  • Enter Normal modeEsc
  • Move left/down/up/righthjkl
  • Delete characterx
  • Search forward/{pattern}
  • Save file:w
  • Record macro into registerq{letter}

Modes

11 shortcuts
Enter Normal mode
Esc
Esc
Enter Insert mode
i
Insert at end of line
A
Insert on new line below
o
Insert on new line above
O
Enter Visual mode
v
Enter Visual Line mode
V
Enter Visual Block mode
CtrlV
Ctrl+V
Enter Command-line mode
:
Replace single character
r
Replace mode (overwrite)
R

Navigation

12 shortcuts
Move left/down/up/right
hjkl
Next / previous word
wb
End of word
e
Start of line (non-blank)
^
End of line
$
First line of file
gg
Last line of file
G
Go to line N
:NorNgg
Half page down/up
CtrlDCtrlU
Ctrl+D · Ctrl+U
Jump to matching bracket
%
Jump to next/prev occurrence of char
f{char}F{char}
Center view on cursor
zz

Editing

15 shortcuts
Delete character
x
Delete line
dd
Delete word
dw
Delete to end of line
D
Yank (copy) line
yy
Yank word
yw
Paste after / before cursor
pP
Change word
cw
Change to end of line
C
Change entire line
cc
Undo
u
Redo
CtrlR
Ctrl+R
Repeat last change
.
Indent / unindent line
>><<
Auto-indent selection
=G(fromtop)

Search & Replace

8 shortcuts
Search forward
/{pattern}
Search backward
?{pattern}
Next / previous match
nN
Search word under cursor
*#
Replace in line
:s/old/new/
Replace all in file
:%s/old/new/g
Replace with confirmation
:%s/old/new/gc
Clear search highlight
:noh

File & Buffers

9 shortcuts
Save file
:w
Save and quit
:wq
Quit without saving
:q!
Open file
:e{file}
List buffers
:ls
Next / previous buffer
:bn:bp
Split horizontally
:sp
Split vertically
:vsp
Navigate splits
CtrlWhjkl

Macros

5 shortcuts
Record macro into register
q{letter}
Stop recording
q
Play macro
@{letter}
Repeat last macro
@@
Run macro N times
N@{letter}

Frequently asked questions

What is the fastest way to find Vim shortcuts on this page?

Use the search box or press /, then type an action such as enter normal mode.

Can I print this Vim shortcut cheat sheet?

Yes. Use the Print / PDF button or your browser print command to save a compact cheat sheet.

Which operating systems are included for Vim?

This reference includes shortcuts for Windows · macOS · Linux. Availability depends on the action and app version.

See also

Explore shortcuts by key

Key lookup

Compare shortcuts

Vim / Neovim · Vim / VS Code

No shortcuts match your search.