vim most general editor commands command very much, only need to master the following some of the commonly used, basically fully enough.
The most concentrated of the essence.
Vim Insert mode Command mode edit mode : Set number sets line numbers: Set Nunumber Cancel line number
GG to the first line G to the last row: 100 Straight to 100 lines
DD Delete cursor row 10DD Delete 10 rows
DG Delete cursor to end of file: 6,10d Delete 6--10 Line
YY copy Current line 8yy retest 8 line
P paste DD cut 8DD cut 8 lines
U cancel the opposite ctrl+r of the previous step U
/string search string n next n prev
: Set Ic:set noic Ignore case Search
:%s/old/new/g Full-Text replacement string
: n1,n2s/old/new/g G does not ask C to inquire: R/etc/issue Import External file to cursor:! Execute shell command
: R!data Import current system time can import shell execution result required! Number: n1,n2s/^/#/g Multiline Header with comment ^ indicates beginning of line
: n1,n2s/^#//g Remove Line # comment
: n1,n2s/^/\/\//g plus slash comment turn from tpshop--it Cosmic Man
Vim Most general editor commands