Neovim Linux Shortcuts

60 shortcuts · View all OS →

WindowsmacOSLinuxCompare all
Neovim Linux keyboard shortcuts
ActionLinux Shortcut
Normal Mode — Motion
Move left / down / up / rightHJKL
Word forwardW
Word backwardB
End of wordE
Start of line0
First non-blank of line^
End of line$
Go to first lineGG
Go to last lineG
Go to line NNG
Jump backCtrlO
Jump forwardCtrlI
Normal Mode — Editing
UndoU
RedoCtrlR
Delete lineDD
Delete characterX
Yank (copy) lineYY
Paste after cursorP
Paste before cursorShiftP
Duplicate lineYYPP
Replace characterR{char}
Change to end of lineC$
Join linesShiftJ
Indent line right>>
Indent line left<<
Insert Mode
Enter Insert mode (before)I
Enter Insert mode (after)A
Insert at start of lineShiftI
Append at end of lineShiftA
New line belowO
New line aboveShiftO
Return to Normal modeEscCtrl[
Delete word backwardCtrlW
Visual Mode
Enter Visual mode (char)V
Enter Visual mode (line)ShiftV
Enter Visual block modeCtrlV
Yank selectionY
Delete selectionD
Indent selection right>
Indent selection left<
Toggle case~
Search & Commands
Search forward/
Search backward?
Next matchN
Previous matchShiftN
Search word under cursor*
Command mode:
Save file:W
Quit:Q
Save and quit:WQZZ
Quit without saving:Q!
Global replace:%S/old/new/G
LSP & Code (built-in)
Go to definitionGD
Go to declarationGD(uppercase)
Show hover documentationK
Show signature helpCtrlK
List referencesGR
Next diagnostic]D
Previous diagnostic[D
Code action<Leader>CA