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 Yes Source
Delete line Delete the current line D+D D+D Yes Source
Yank line Yank (copy) the current line Y+Y Y+Y Yes Source
Put after cursor Put (paste) after the cursor P P Yes Source
Undo Undo the last change U U Yes Source
Redo Redo the last undone change Ctrl+R Ctrl+R Yes Source
Substitute character Replace the character under the cursor R R Yes Source
Change word Change from cursor to end of word C+W C+W Yes Source
Join lines Join the current line with the next Shift+J Shift+J Yes Source
Indent line Indent the current line > > Yes Source
Dedent line Dedent the current line < < Yes Source
Toggle case Toggle case of the character under the cursor ~ ~ Yes Source

Ex

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

Help

ActionDescriptionWindowsMacVerifiedSource
Show help Open Neovim help :+H+Enter :+H+Enter Yes Source

Insert

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

Marks

ActionDescriptionWindowsMacVerifiedSource
Mark position Set a mark at the cursor position M M Yes Source
Jump to mark Jump to a previously set mark ' ' Yes Source

Motion

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

Search

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

Visual

ActionDescriptionWindowsMacVerifiedSource
Visual mode Start character-wise visual selection V V Yes Source
Visual line mode Start line-wise visual selection Shift+V Shift+V Yes Source
Visual block mode Start block-wise visual selection Ctrl+V Ctrl+V Yes Source

Windows

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

← All apps on Shortcut Atlas

Loading Shortcut Atlas…