Delete command
-delete character before deleting the character: x (uppercase X) Delete the character after the cursor: x (lowercase x)-word: DW Deletes the entire word, the cursor should be at the top of the word-delete the cursor before the string: d0-delete the cursor after the string: d$-Delete line: DD, delete the row of the cursor-delete multiple lines: ndd n Line number revocation and anti-revocation: U anti-undo: ctrl+r Copy and paste copy: One line: yy multiple lines: Nyy paste: P: Paste to the bottom line of the cursor P: Paste to the top row of the cursor in the case of vim delete equivalent to cut operation to copy part of the open Visual mode visual mode: V-Move the cursor: HJKL-Copy: Y-delete: D-paste: P: Paste to the back of the cursor P: Paste to the front of the cursor replace operation, equivalent to modify the operation R: replace one, the cursor covers the character R: replace multiple, from the cursor covered by the next replacement
Delete Copy and paste in vim command mode