:q or :quit |
exit the form |
:w or :write |
write the typing result into a file (save) |
:wq |
save and exit |
:q! |
Exit and do not save |
escape |
normal mode |
i |
insert mode |
v |
visual mode, must be in normal mode first |
h |
left |
j |
down |
k |
up |
l |
right |
:ter |
open the terminal |
0 or home |
move the cursor to the beginning of the line |
$ or end |
move the cursor to the end of the line |
gg |
move the cursor to the top |
G |
move the cursor to the end of the page |
w |
move the cursor to the next word with out spaces |
3w |
move the cursor to the next 3 words |
b |
move the cursor to the previous word |
3b |
move the cursor to the previous 3 words |
( |
move the cursor to the previous paragraph |
) |
move the cursor to the next paragraph |
dd |
delete text 1 line |
d$ |
delete words until the end of the line from the cursor position |
d0 |
delete words until the beginning of the line from the cursor position
|
U |
to undo |
CTRL + r |
Rendo |
Yp |
duplicate line code |
yyp |
same duplicate line code |
:m+1 |
move 1 line down |
:m-1 |
move 1 line up |
d |
delete code that is selected with view mode |
:e newfolder/newfile.ext |
create a new file in a new folder |
:f newfolder/newfile.ext |
to copy the file from the open file |
bdw |
delete 1 word |
dw |
delete to the right in 1 word at the cursor position |
## Thanks To
https://github.com/LunarVim/Neovim-from-scratch