1. Home
  2. Keyboard Shortcuts
  3. Neovim
Code Editors & IDEs

Neovim Keyboard Shortcuts

We gathered all 191 Neovim shortcuts so you can edit text with modern vim at speed

Neovim keyboard shortcuts

From Neovim Community, Neovim is purpose-built to edit text with modern vim. It is one of the leading applications in the code editors & IDEs category.

Knowing the right keyboard shortcuts turns Neovim into a faster, more responsive tool. It is one of the simplest upgrades to any workflow.

Available on macOS, Windows, and Linux, Neovim serves a broad audience of professionals who benefit from learning platform-specific shortcut keys.

macOSWindowsLinux 191 SHORTCUTS 18 CATEGORIES
VISIT NEOVIM OFFICIAL WEBSITE ↗
SHOW SHORTCUTS FOR:
Jump to Section (18 sections)

Navigation62 SHORTCUTS

Move left / Move to line N in the window, on the first non-blank HHH
Move right / Move to the Nth line from the bottom, on the first non-blank LLL
Move up N lines KKK
Move down N lines JJJ
Move to first character in the line 000
Move to first non-blank character in the line ^^^
Move to the next EOL (end of line) position $$$
Move to first character in screen line (differs from "0" when lines wrap) G+0G+0G+0
Move to first non-blank character in screen line (differs from "^" when lines wrap) G+^G+^G+^
Move to last character in screen line (differs from "$" when lines wrap) G+$G+$G+$
Move to middle of the screen line G+MG+MG+M
Move to column N |||
Move to the Nth occurrence of `{char}` to the right / Move to the Nth occurrence of `{char}` to the left F+{char}F+{char}F+{char}
Move till before the Nth occurrence of `{char}` to the right / Move till before the Nth occurrence of `{char}` to the left T+{char}T+{char}T+{char}
Repeat the last "f", "F", "t", or "T" N times ;;;
Repeat the last "f", "F", "t", or "T" N times in opposite direction ,,,
Move up N lines (also: CTRL-P and <Up>) Ctrl+PCtrl+PCtrl+P
Move up N lines (also: <Up>) UpUpUp
Move down N lines (also: CTRL-J, CTRL-N, <NL>, and <Down>) Ctrl+JCtrl+JCtrl+J
Move down N lines (also: CTRL-N, and <Down>) Ctrl+NCtrl+NCtrl+N
Move down N lines (also: <Down>) DownDownDown
Move down N lines, on the first non-blank character ---
Move down N lines, on the first non-blank character (also: CTRL-M and <CR>) Ctrl+MCtrl+MCtrl+M
Move down N lines, on the first non-blank character (also: <CR>) EnterEnterEnter
Move down N-1 lines, on the first non-blank character ___
Goto line N (default: last line), on the first non-blank character GGG
Goto line N (default: first line), on the first non-blank character G+GG+GG+G
Go to line N percentage down in the file; N must be given, otherwise it is the [%] command N+%N+%N+%
Move up N screen lines G+KG+KG+K
Move down N screen lines G+JG+JG+J
Move N blank-separated WORDS forward WWW
Move forward to the end of the Nth blank-separated WORD EEE
Move N blank-separated WORDS backward BBB
Move backward to the end of the Nth blank-separated WORD G+EG+EG+E
Move N sentences forward )))
Move N sentences backward (((
Move N paragraphs forward }}}
Move N paragraphs backward {{{
Move N sections forward, at start of section ]+]]+]]+]
Move N sections backward, at start of section [+[[+[[+[
Move N sections forward, at end of section ]+[]+[]+[
Move N sections backward, at end of section [+][+][+]
Move N times back to unclosed '(' [+([+([+(
Move N times back to unclosed '{' [+{[+{[+{
Move N times back to start of method (for Java) / Move N times back to end of method (for Java) [+M[+M[+M
Move N times forward to unclosed ')' ]+)]+)]+)
Move N times forward to unclosed '}' ]+}]+}]+}
Move N times forward to start of method (for Java) / Move N times forward to end of method (for Java) ]+M]+M]+M
Move N times back to unclosed "#if" or "#else" [+#[+#[+#
Move N times forward to unclosed "#else" or "#endif" ]+#]+#]+#
Move N times back to start of comment "/*" [+*[+*[+*
Move N times forward to end of comment "*/" ]+*]+*]+*
Move to the middle line in the window, on the first non-blank MMM
Go to Nth byte in the buffer G+OG+OG+O
Go to Nth byte in the buffer :+go:+go:+go
Find the next brace, bracket, comment, or "#if"/ "#else"/"#endif" in this line and go to its match %%%
Repeat last search, in the forward direction ///
Repeat last search, in the backward direction ???
Search forward for the identifier under the cursor ***
Search backward for the identifier under the cursor ###
Like "*", but also find partial matches G+*G+*G+*
Like "#", but also find partial matches G+#G+#G+#

Marks and Jumps16 SHORTCUTS

Mark current position with mark `{a-zA-Z}` M+{a-zA-Z}M+{a-zA-Z}M+{a-zA-Z}
Go to mark {a-z} within current file `+{a-z}`+{a-z}`+{a-z}
Go to mark {A-Z} in any file `+{A-Z}`+{A-Z}`+{A-Z}
Go to the position where Vim was previously exited `+0`+0`+0
Go to the position before the last jump `+``+``+`
Go to the position when last editing this file `+"`+"`+"
Go to the start of the previously operated or put text `+[`+[`+[
Go to the end of the previously operated or put text `+]`+]`+]
Go to the start of the (previous) Visual area `+<`+<`+<
Go to the end of the (previous) Visual area `+>`+>`+>
Go to the position of the last change in this file `+.`+.`+.
same as, but on the first non-blank in the line '+{a-zA-Z0-9[]"'<>.}'+{a-zA-Z0-9[]"'<>.}'+{a-zA-Z0-9[]"'<>.}
Print the active marks :+marks:+marks:+marks
Go to Nth older position in jump list Ctrl+OCtrl+OCtrl+O
Go to Nth newer position in jump list Ctrl+ICtrl+ICtrl+I
Print the jump list :+ju:+ju:+ju

Searching6 SHORTCUTS

Search forward for the Nth occurrence of `{pattern}` /+{pattern}+<CR>/+{pattern}+<CR>/+{pattern}+<CR>
Search backward for the Nth occurrence of `{pattern}` ?+{pattern}+<CR>?+{pattern}+<CR>?+{pattern}+<CR>
Repeat last search, in the forward direction /+<CR>/+<CR>/+<CR>
Repeat last search, in the backward direction ?+<CR>?+<CR>?+<CR>
Repeat last search, in opposite direction NNN
Go to local declaration of identifier under the cursor / Goto global declaration of identifier under the cursor G+DG+DG+D

Tags2 SHORTCUTS

Jump to the tag under cursor Ctrl+]Ctrl+]Ctrl+]
Jump back from Nth older tag in tag list Ctrl+TCtrl+TCtrl+T

Scrolling6 SHORTCUTS

Scroll window N lines downwards Ctrl+ECtrl+ECtrl+E
Scroll window N lines downwards Ctrl+DCtrl+DCtrl+D
Scroll window N pages forwards Ctrl+FCtrl+FCtrl+F
Scroll window N lines upwards Ctrl+YCtrl+YCtrl+Y
Scroll window N lines upwards Ctrl+UCtrl+UCtrl+U
Scroll window N pages backwards Ctrl+BCtrl+BCtrl+B

Inserting Text3 SHORTCUTS

End Insert mode, back to Normal mode EscEscEsc
End Insert mode, back to Normal mode (do not use an abbreviation) Ctrl+CCtrl+CCtrl+C
Execute command and return to Insert mode Ctrl+OCtrl+OCtrl+O
The BuildBox Macropad Puts Keyboard Shortcuts at Your Fingertips! LEARN MORE →

Insert Mode10 SHORTCUTS

Move cursor left/right/up/down LeftLeftLeft
Move cursor left/right/up/down RightRightRight
Move cursor left/right/up/down UpUpUp
Move cursor left/right/up/down DownDownDown
Shift-left/right one word left/right Shift+LeftShift+LeftShift+Left
Shift-left/right one word left/right Shift+RightShift+RightShift+Right
Shift-up/down one screenful backward/forward Shift+UpShift+UpShift+Up
Shift-up/down one screenful backward/forward Shift+DownShift+DownShift+Down
Cursor after last character in the line EndEndEnd
Cursor to first character in the line HomeHomeHome

Insert Mode Special Keys19 SHORTCUTS

Insert character literally, or enter decimal byte value Ctrl+VCtrl+VCtrl+V
Begin new line EnterEnterEnter
Begin new line Ctrl+MCtrl+MCtrl+M
Begin new line Ctrl+JCtrl+JCtrl+J
Insert the character from below the cursor Ctrl+ECtrl+ECtrl+E
Insert the character from above the cursor Ctrl+YCtrl+YCtrl+Y
Insert previously inserted text Ctrl+ACtrl+ACtrl+A
Insert previously inserted text and stop Insert mode Ctrl+@Ctrl+@Ctrl+@
Insert the contents of a register Ctrl+RCtrl+RCtrl+R
Insert next match of identifier before the cursor Ctrl+NCtrl+NCtrl+N
Insert previous match of identifier before the cursor Ctrl+PCtrl+PCtrl+P
Insert the character before the cursor in various ways Ctrl+XCtrl+XCtrl+X
Delete the character before the cursor BackspaceBackspaceBackspace
Delete the character before the cursor Ctrl+HCtrl+HCtrl+H
Delete the character under the cursor DeleteDeleteDelete
Delete word before the cursor Ctrl+WCtrl+WCtrl+W
Delete all entered characters in the current line Ctrl+UCtrl+UCtrl+U
Insert one shiftwidth of indent in front of the current line Ctrl+TCtrl+TCtrl+T
Delete all indent in the current line, restore indent in next line Ctrl+DCtrl+DCtrl+D

Digraphs1 SHORTCUT

Enter digraph Ctrl+KCtrl+KCtrl+K

Deleting Text1 SHORTCUT

Delete N characters under and after the cursor DeleteDeleteDelete

Undo/Redo1 SHORTCUT

Redo last N undone changes Ctrl+RCtrl+RCtrl+R

External Commands1 SHORTCUT

Lookup keyword under the cursor KKK

Various Commands and Actions4 SHORTCUTS

Clear and redraw the screen Ctrl+LCtrl+LCtrl+L
Show current file name (with path) and cursor position / Show cursor column, line, and character position Ctrl+GCtrl+GCtrl+G
Interrupt the search Ctrl+CCtrl+CCtrl+C
Delete last character DeleteDeleteDelete

Command-line editing26 SHORTCUTS

Abandon command-line EscEscEsc
Insert character literally / Enter decimal value of character Ctrl+VCtrl+VCtrl+V
Enter digraph Ctrl+KCtrl+KCtrl+K
Insert the contents of a register Ctrl+RCtrl+RCtrl+R
Cursor left LeftLeftLeft
Cursor right RightRightRight
Cursor one word left Shift+LeftShift+LeftShift+Left
Cursor one word right Shift+RightShift+RightShift+Right
Cursor to beginning of command-line Ctrl+BCtrl+BCtrl+B
Cursor to end of command-line Ctrl+ECtrl+ECtrl+E
Delete the character in front of the cursor BackspaceBackspaceBackspace
Delete the character under the cursor DeleteDeleteDelete
Delete the word in front of the cursor Ctrl+WCtrl+WCtrl+W
Remove all characters between the cursor and beginning of command-line Ctrl+UCtrl+UCtrl+U
Recall older command-line that starts with current command UpUpUp
Recall newer command-line that starts with current command DownDownDown
Recall older command-line from history Shift+UpShift+UpShift+Up
Recall newer command-line from history Shift+DownShift+DownShift+Down
Next match when 'incsearch' is active Ctrl+GCtrl+GCtrl+G
Previous match when 'incsearch' is active Ctrl+TCtrl+TCtrl+T
Do completion on the pattern in front of the cursor TabTabTab
List all names that match the pattern in front of the cursor Ctrl+DCtrl+DCtrl+D
Insert all names that match pattern in front of cursor Ctrl+ACtrl+ACtrl+A
Insert longest common part of names that match pattern Ctrl+LCtrl+LCtrl+L
Go to next match after wildchar with multiple matches Ctrl+NCtrl+NCtrl+N
Go to previous match after wildchar with multiple matches Ctrl+PCtrl+PCtrl+P

Editing a file2 SHORTCUTS

Edit alternate file N Ctrl+^Ctrl+^Ctrl+^
Edit the file whose name is under the cursor G+FG+FG+F

Writing and quitting1 SHORTCUT

Suspend Vim or start new shell Ctrl+ZCtrl+ZCtrl+Z

Multi-window22 SHORTCUTS

Split window into two parts Ctrl+W+SCtrl+W+SCtrl+W+S
Split window and edit file in one of them N/ACtrl+W+FCtrl+W+F
Split window and edit alternate file N/ACtrl+W+^Ctrl+W+^
Create new empty window Ctrl+W+NCtrl+W+NCtrl+W+N
Quit editing and close window Ctrl+W+QCtrl+W+QCtrl+W+Q
Make buffer hidden and close window Ctrl+W+CCtrl+W+CCtrl+W+C
Make current window only one on the screen Ctrl+W+OCtrl+W+OCtrl+W+O
Move cursor to window below Ctrl+W+JCtrl+W+JCtrl+W+J
Move cursor to window above Ctrl+W+KCtrl+W+KCtrl+W+K
Move cursor to window below (wrap) / Move cursor to window above (wrap) Ctrl+W+WCtrl+W+WCtrl+W+W
Move cursor to top window Ctrl+W+TCtrl+W+TCtrl+W+T
Move cursor to bottom window Ctrl+W+BCtrl+W+BCtrl+W+B
Move cursor to previous active window Ctrl+W+PCtrl+W+PCtrl+W+P
Rotate windows downwards / Rotate windows upwards Ctrl+W+RCtrl+W+RCtrl+W+R
Exchange current window with next one Ctrl+W+XCtrl+W+XCtrl+W+X
Make all windows equal height & width Ctrl+W+=Ctrl+W+=Ctrl+W+=
Decrease current window height Ctrl+W+-Ctrl+W+-Ctrl+W+-
Increase current window height Ctrl+W++Ctrl+W++Ctrl+W++
Set current window height (default: very high) Ctrl+W+_Ctrl+W+_Ctrl+W+_
Decrease current window width Ctrl+W+<Ctrl+W+<Ctrl+W+<
Increase current window width Ctrl+W+>Ctrl+W+>Ctrl+W+>
Set current window width (default: widest possible) Ctrl+W+|Ctrl+W+|Ctrl+W+|

Folding8 SHORTCUTS

Define a fold manually Z+FZ+FZ+F
Delete one fold under the cursor / Delete all folds under the cursor Z+DZ+DZ+D
Open one fold under the cursor / Open all folds under the cursor Z+OZ+OZ+O
Close one fold under the cursor / Close all folds under the cursor Z+CZ+CZ+C
Fold more: decrease ['foldlevel'] / Close all folds: make ['foldlevel'] zero Z+MZ+MZ+M
Reduce folding: increase ['foldlevel'] / Open all folds: make ['foldlevel'] max. Z+RZ+RZ+R
Fold none: reset ['foldenable'] / Fold normal set ['foldenable'] Z+NZ+NZ+N
Invert ['foldenable'] Z+IZ+IZ+I

Noticed errors or keyboard shortcuts that don't work? Please let us know about them here →

The BuildBox Macropad Unlocks Thousands of Keyboard Shortcuts For Any App

The BuildBox Macropad
Available early December

That's why the BuildBox Macropad is the Ultimate Shortcut Machine. One device with infinite shortcuts available at your fingertips, plus a HUGE display showing what each key does, and a magnet-powered zero-friction scroll wheel that moves through documents, video, audio and graphic editing apps like butter!

Enter your Email to get your hands on a launch batch BuildBox (limited: 200 available):

Keyboard Shortcuts for Similar Applications