Vim Editor Common syntax

Source: Internet
Author: User

1) yy (function Description: Copy the current line of the cursor)
Y digit y (function Description: Copy a paragraph (from the first line to the first line))
2) P (function Description: Arrow moves to Destination line to paste)
3) U (function Description: Undo previous step)
4) DD (function Description: Delete cursor current line)
D Digit D (function Description: How many lines after the cursor (including) is deleted)
5) x (function Description: Delete one letter, equivalent to Del)
X (function Description: Delete a letter, equivalent to BACKSPACE)

6) YW (function description: Copy a word)
7) DW (function Description: delete a word)
8) shift+^ (function Description: Move to Wardrobe)
9) shift+$ (function Description: Move to end of line)
1+shift+g (function Description: Move to page header, number)
One) shift+g (function Description: Move to the end of the page)
12) Digital N+shift+g (function Description: Move to target line)


Enter edit mode
(1) I current cursor before
(2) A after the current cursor
(3) o The next line of the current cursor line

In the general mode, enter ":/?" 3 Any one of the buttons, you can move the cursor to the bottom row.

Vim Editor Common syntax

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.