i - start manual pasting
a - i, but pasting after cursor
I - pasting in home line
A - pasting in end line
o - pasting in new line
20i# - need esc. Paste 20 #
J - delete enter on end of line
- - go to start of previous line
+ - got to start of second line
u - revert 1 change
U - revert all changes on line
j - down on 1 line
k - up on 1 line
h - left on 1 symbol
l - right on 1 symbol
It commands, and many other, can use with numbers, ex 5k, it swith cursor on 5 lines
B - switch cursor on 1 word before
W - switch cursor on 1 word after
$ - END
0 - HOME
c - replase text. cc - replace all line. Can use with other commands, ex c0, c$, cw - change word
y - yank text. yy - yank line, yW - yank word
d - delete text. dd - delete line, dW - delete word
D - delete all text on line after cursor, C - replace all text on line after cursor
r - replace only 1 symbol
s - can be use with numbers, replace symbol/s
:register - see last 9 changes on file (only in vim)
"3p - paste 3 changes from register (work in vi too)
. - repeat command. Ex - can repeat yy command
ctrl+g - see number of line
hange all line without cc, its works!! 2 line
3 line
:e! - reset all changes in file
:w file_name - write to new file with file_name
:! - run command
Main: O`reilly Изучаем vi и vim. Не просто редакторы. 8е Издание. Арнольд Роббирс, Элберт Ханна.