Neovim
Shortcuts
- Remember that Neovim is very customizable, so any shortcuts shown here might not be configured in your installation.
Shortcut | In mode | Function |
---|---|---|
: | NORMAL | Switch to COMMAND-LINE mode |
/ | NORMAL | Search |
% | NORMAL | Move to matching bracket |
^ | NORMAL | Move to the first non blank character on the current line |
<number> +G | NORMAL | Move to line <number> |
$ | NORMAL | Move to the end of the current line |
0 | NORMAL | Move to the beginning of the current line |
1G , 1gg | NORMAL | Move to first line |
a | NORMAL | Switch to INSERT mode after the current character |
A | NORMAL | Switch to INSERT mode after the end of the current line |
b | NORMAL | Move to previous word (“backwards”) |
c +motion | NORMAL | Change text |
Ctrl +Alt +V | INSERT | Paste |
Ctrl +D | NORMAL | Move half a screen downward |
Ctrl +r | NORMAL | Redo |
Ctrl +u | NORMAL | Move half a screen upward |
d +motion | NORMAL | Delete |
dd | NORMAL | Delete line |
Esc , Ctrl +C | Any except NORMAL | Switch back to NORMAL mode |
gg | NORMAL | Go to the beginning of the file |
G | NORMAL | Go to the end of the file |
h | NORMAL | ⬅️ Move cursor left |
i | NORMAL | Switch to INSERT mode before the current character |
j | NORMAL | ⬇️ Move cursor down |
k | NORMAL | ⬆️ Move cursor up |
l | NORMAL | ➡️ Move cursor right |
n | NORMAL | Next search result |
N | NORMAL | Previous search result |
o | NORMAL | Open a new line below the current and switch to INSERT mode |
O | NORMAL | Open a new line above the current and switch to INSERT mode |
q | COMMAND-LINE | Quit |
q! | COMMAND-LINE | Quit without saving |
r | NORMAL | Replace one character |
Shift +G | NORMAL | Move to end of document |
u | NORMAL | Undo |
v | NORMAL | Switch to VISUAL mode |
w | NORMAL | Move to next word |
w | COMMAND-LINE | “Write” (save) |
wq | COMMAND-LINE | “Write” (save) and quit |
x | NORMAL | Delete character under cursor |
y +motion | NORMAL | “Yank” (copy) |
FAQ
![[r.dev.building-your-mouseless-development-environment.notes#First Steps In Neovim]]