Refer to the essays from Maowang
Cut (delete):
Clipping actually removes the selected content, so it can be used when the cut command is used, or when the delete command.
First, you can enter the free selection mode in command mode, select the text you want to cut, and then press D to cut. Other command mode Cut command: DD: Cut the current line ndd:n represents a number greater than 1, cut n row DW: Cut from the cursor to the end of a list/ word, including a space de: cut from the cursor to the end of a list/ word, not including spaces d$ : Cut from the current cursor to the end of the line D0: Cut from the current cursor position (not including the cursor position) D3L: Cut 3 characters to the right from the cursor position (including the cursor position) D5G: Cut the current line (including the current row) to line 5th (excluding it) d3b: Cut 3 words from the current cursor position (excluding cursor position) All rows from the current line to the top row of the displayed screen DM: Cut all rows from the current line to the line specified by command m DL: cut all rows from the current line to the bottom of the displayed screen
In addition: Press the D key alone, is cut 2 lines, press ND, is cut n+1 line, but generally use or is recommended to use double D (i.e. DD) to execute.
Copy:
First, you can enter the free selection mode in command mode, select the text you want to cut, and then press D to cut. Other command mode Cut command: yy: Copy the current line nyy:n represents a number greater than 1, copy n rows yw: Copy from the cursor to the end of a list/ word, including the space ye: Copy from the cursor to the end of a list/ word, not including spaces y$ : Copy from current cursor to end of line y0: Copy from current cursor position (not including cursor position) Y3L: Copy 3 characters to the right from the cursor position (including the cursor position) y5g: Copy the current line (including the current row) to line 5th (excluding it) y3b: Copy the 3 words from the current cursor position (not including the cursor position)
Press Y alone to copy the 2 rows, and NY is to copy the N+1 line.
Paste:
Press p at the cursor where you want to paste.
Use of the Paste Copy Accelerator for VIM in Linux