Neovim

Neovim Shortcuts

Neovim keyboard shortcuts for modal editing, navigation, LSP and terminal workflow.

Source: Official documentation · Updated 2025-05

Shortcuts
6
Categories

Cheat sheet guide

Neovim shortcuts worth learning first

This page collects 60 searchable Neovim keyboard shortcuts across 6 categories. Start with the shortcuts for Normal Mode — Motion, Normal Mode — Editing, Insert Mode, Visual Mode, then print the cheat sheet once the important ones are worth keeping nearby.

  • Switch OS tabs for Windows, macOS, or Linux shortcuts.
  • Use / to jump to search instantly.
  • Use Compare mode when moving between machines.
  • Print or save the page as a compact PDF cheat sheet.
Normal Mode — Motion 12 shortcuts
Move left / down / up / right
H/J/K/L
Word forward
W
Word backward
B
End of word
E
Start of line
0
First non-blank of line
^
End of line
$
Go to first line
GG
Go to last line
G
Go to line N
NG
Jump back
Ctrl+O
Jump forward
Ctrl+I
Normal Mode — Editing 13 shortcuts
Undo
U
Redo
Ctrl+R
Delete line
DD
Delete character
X
Yank (copy) line
YY
Paste after cursor
P
Paste before cursor
Shift+P
Duplicate line
YYPP
Replace character
R{char}
Change to end of line
C$
Join lines
Shift+J
Indent line right
>>
Indent line left
<<
Insert Mode 8 shortcuts
Enter Insert mode (before)
I
Enter Insert mode (after)
A
Insert at start of line
Shift+I
Append at end of line
Shift+A
New line below
O
New line above
Shift+O
Return to Normal mode
Esc/Ctrl+[
Delete word backward
Ctrl+W
Visual Mode 8 shortcuts
Enter Visual mode (char)
V
Enter Visual mode (line)
Shift+V
Enter Visual block mode
Ctrl+V
Yank selection
Y
Delete selection
D
Indent selection right
>
Indent selection left
<
Toggle case
~
Search & Commands 11 shortcuts
Search forward
/
Search backward
?
Next match
N
Previous match
Shift+N
Search word under cursor
*
Command mode
:
Save file
:W
Quit
:Q
Save and quit
:WQ/ZZ
Quit without saving
:Q!
Global replace
:%S/old/new/G
LSP & Code (built-in) 8 shortcuts
Go to definition
GD
Go to declaration
GD(uppercase)
Show hover documentation
K
Show signature help
Ctrl+K
List references
GR
Next diagnostic
]D
Previous diagnostic
[D
Code action
<Leader>CA

Frequently asked questions

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

Use the search box or press /, then type an action such as move left / down / up / right.

Can I print this Neovim shortcut cheat sheet?

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

Does this page include Windows and Mac shortcuts for Neovim?

Yes. Use the OS tabs to switch between Windows and macOS shortcuts. For example, Move left / down / up / right is H / J / K / L on Windows and H / J / K / L on macOS where available.

Advertisement
No shortcuts match your search.