Original: https: //blog.csdn.net/u011402596/article/details/42283131
Note: The following delete, copy and paste are operating in the non-edit mode (esc)
First, delete
x lowercase x represents delete a character backward, that is, delete the character under the cursor
nx n represents a number, a character backward delete each represents, for example: 10x including means to delete later includes a cursor 10 characters
X X represents capitalized delete a character before the cursor, the cursor does not include the character
nX n represents a number, a character forward delete each represents, for example: 10X before the cursor is deleted indicates 10 characters, not including the character cursor
dd Delete cursor line is actually cut
n represents a number NDD, n delete down cursor line
d1G delete the cursor line to the first line of data
dG delete the cursor to the last row of data
d0 delete the cursor to the first character of the line
d $ delete the cursor to the last character of the line
Second, copy
yy Copy the line cursor
NYY n represents a number, n rows copied down cursor
y1G copy cursor line data to the first row
yG copy cursor to the last row of data
y0 copy cursor to the first character of the line
y $ Copy the cursor to the last character of the line
Third, paste
Small p and p represents the copied data is pasted in the next line of the cursor
Large P P represents the copied data is pasted on the cursor line
J to the data line and the next line combining the cursor
u represents the u small undo previous operation (particularly important, similar to the windows inside the word inside crtl + y)
ctrl + r and u contrast, represents a step of applying the redo operations (particularly important, similar to the windows inside the word inside crtl + y)
Point represents a repeated ago, for example: would like multiple copies, has been pressing this point on the line