Neovim Keyboard Shortcuts

Neovim keyboard shortcut reference covering 51 bindings for Windows, Mac & Linux. Commonly searched bindings include Enter Insert mode, Append after cursor, and Open line below. 51 of 51 shortcuts are verified against official Neovim documentation, each with a linked source when available. Search by action name, filter by category, look up what a key combination does, print a cheat sheet, or practice with flashcards.

Official Neovim documentation

Editing

ActionDescriptionWindowsMacVerifiedSource
Delete character Delete character under the cursor X X Windows, macOS, Linux Source
Delete line Delete the current line D+D D+D Windows, macOS, Linux Source
Yank line Yank (copy) the current line Y+Y Y+Y Windows, macOS, Linux Source
Put after cursor Put (paste) after the cursor P P Windows, macOS, Linux Source
Undo Undo the last change U U Windows, macOS, Linux Source
Redo Redo the last undone change Ctrl+R Ctrl+R Windows, macOS, Linux Source
Substitute character Replace the character under the cursor R R Windows, macOS, Linux Source
Change word Change from cursor to end of word C+W C+W Windows, macOS, Linux Source
Join lines Join the current line with the next Shift+J Shift+J Windows, macOS, Linux Source
Indent line Indent the current line > > Windows, macOS, Linux Source
Dedent line Dedent the current line < < Windows, macOS, Linux Source
Toggle case Toggle case of the character under the cursor ~ ~ Windows, macOS, Linux Source

Ex

ActionDescriptionWindowsMacVerifiedSource
Write (save) file Write (save) the current file :+W+Enter :+W+Enter Windows, macOS, Linux Source
Quit Quit the current window or Neovim :+Q+Enter :+Q+Enter Windows, macOS, Linux Source
Write and quit Write the file and quit :+W+Q+Enter :+W+Q+Enter Windows, macOS, Linux Source
Force quit Quit without saving changes :+Q+!+Enter :+Q+!+Enter Windows, macOS, Linux Source
Open file explorer (:Ex) Open the built-in file explorer :+E+X+Enter :+E+X+Enter Windows, macOS, Linux Source

Help

ActionDescriptionWindowsMacVerifiedSource
Show help Open Neovim help :+H+Enter :+H+Enter Windows, macOS, Linux Source

Insert

ActionDescriptionWindowsMacVerifiedSource
Enter Insert mode Enter insert mode before the cursor I I Windows, macOS, Linux Source
Append after cursor Enter insert mode after the cursor A A Windows, macOS, Linux Source
Open line below Open a new line below and insert O O Windows, macOS, Linux Source
Open line above Open a new line above and insert Shift+O Shift+O Windows, macOS, Linux Source
Exit Insert mode Return to normal mode Escape Escape Windows, macOS, Linux Source

Marks

ActionDescriptionWindowsMacVerifiedSource
Mark position Set a mark at the cursor position M M Windows, macOS, Linux Source
Jump to mark Jump to a previously set mark ' ' Windows, macOS, Linux Source

Motion

ActionDescriptionWindowsMacVerifiedSource
Go to line Go to a line (or last line with no count) Shift+G Shift+G Windows, macOS, Linux Source
Go to first line Go to the first line of the buffer G+G G+G Windows, macOS, Linux Source
Beginning of line Move to the beginning of the line 0 0 Windows, macOS, Linux Source
End of line Move to the end of the line $ $ Windows, macOS, Linux Source
Word forward Move forward by one word W W Windows, macOS, Linux Source
Word backward Move backward by one word B B Windows, macOS, Linux Source
Page down Scroll one page forward Ctrl+F Ctrl+F Windows, macOS, Linux Source
Page up Scroll one page backward Ctrl+B Ctrl+B Windows, macOS, Linux Source
Half page down Scroll half a page down Ctrl+D Ctrl+D Windows, macOS, Linux Source
Half page up Scroll half a page up Ctrl+U Ctrl+U Windows, macOS, Linux Source
Normal-mode command count Prefix a motion or command with a count 1 1 Windows, macOS, Linux Source

Search

ActionDescriptionWindowsMacVerifiedSource
Search forward Search forward for a pattern / / Windows, macOS, Linux Source
Search backward Search backward for a pattern ? ? Windows, macOS, Linux Source
Next search match Jump to the next search match N N Windows, macOS, Linux Source
Previous search match Jump to the previous search match Shift+N Shift+N Windows, macOS, Linux Source

Visual

ActionDescriptionWindowsMacVerifiedSource
Visual mode Start character-wise visual selection V V Windows, macOS, Linux Source
Visual line mode Start line-wise visual selection Shift+V Shift+V Windows, macOS, Linux Source
Visual block mode Start block-wise visual selection Ctrl+V Ctrl+V Windows, macOS, Linux Source

Windows

ActionDescriptionWindowsMacVerifiedSource
Split window horizontally Split the window horizontally Ctrl+W then S Ctrl+W then S Windows, macOS, Linux Source
Split window vertically Split the window vertically Ctrl+W then V Ctrl+W then V Windows, macOS, Linux Source
Close window Close the current window Ctrl+W then Q Ctrl+W then Q Windows, macOS, Linux Source
Next window Cycle to the next window Ctrl+W then W Ctrl+W then W Windows, macOS, Linux Source
Move to left window Move focus to the window on the left Ctrl+W then H Ctrl+W then H Windows, macOS, Linux Source
Move to right window Move focus to the window on the right Ctrl+W then L Ctrl+W then L Windows, macOS, Linux Source
Move to above window Move focus to the window above Ctrl+W then K Ctrl+W then K Windows, macOS, Linux Source
Move to below window Move focus to the window below Ctrl+W then J Ctrl+W then J Windows, macOS, Linux Source

← All apps on Shortcut Atlas

Loading Shortcut Atlas…