Delete Copy and paste in vim command mode

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.