neovim cheatsheet
-
:?
- search backwards -
:/
- search forwards -
n
- next search result -
N
- previous search result -
:%s/old/new/g
- replace all instances ofold
withnew
-
u
- undo -
i
- insert mode -
a
- append mode -
o
- open line below -
O
- open line above -
h
- move left -
j
- move down -
k
- move up -
l
- move right -
dd
- delete line -
yy
- yank line -
:w
- save -
:q
- quit -
:q!
- quit without saving -
:wq
- save and quit -
:x
- save and quit -
:e
- open file -
:e!
- reload file