The first day of vim learning

Source: Internet
Author: User

First day

1. Insert text: Enter I in normal mode, press ESC to return to normal mode when insert is complete

2.j,k,l,h: Down, up, right, left

3. Delete text: Press X in normal mode to delete the text under the cursor

4. Undo: u--Undo Last edit operation, CTRL + r--undo Last Action (undo last undo)

5.ZZ: Save and exit,

6.:q!: Forced exit (changes are discarded)

7. A: Insert text to the end of the line where the cursor is located

8. DD: Delete the entire line of the cursor

9. O: Insert text on the next line of the row where the cursor is located

O: Insert text on the previous line of the row where the cursor is located

One.: Help: View the documentation

CTRL +]: Jump into Hyperspace link text, Ctrl+t: Jump back to previous screen

3x: Several times for an operation, X for an action, and the preceding number for several operations

The first day of vim learning

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.