Books
Cheat Sheets
Quick Tips
Exiting
- save and quit ·
:wq - save ·
:w - quit ·
:q - quit, loose changes ·
:q!
Editing
-
insert mode ·
i -
insert a new line after current line ·
o -
insert a new line before current line ·
O -
append, append at end of line ·
a,A -
delete character ·
x -
delete line (and copy!) ·
dd -
undo ·
u
Navigation
- left; up; down; right ·
h;j;k;l - word left; right ·
b,e;w - start of line; end of line ·
0;$ - start of file; end of file ·
H,gg;L,G
Clipboard
- visual select mode ·
v - copy (yank) ·
y - copy (yank) current line ·
yy - paste ·
p - paste before ·
P - paste from system clipboard ·
"+p
Settings
- source (reload) config file -
source ~/.config/nvim/nvim.lua - system health check -
:checkhealth