Vim Entry-level use

Source: Internet
Author: User

1. Just enter command mode

2. I enter insert mode

You can only enter content in insert mode, if you want to delete the content, you need to switch to the command line mode and move the cursor to delete.

3. ESC exit Insert mode to enter command line mode

4.: Enter last line mode

Save and exit: Enter in command-line mode: (colon)

: w filename is saved with the specified file name

: Wq Save and exit

: q! Exit directly without saving

———————————————————————————

1. Insert mode

A insert at the next position in the current cursor position

o Insert a new line and enter it from the beginning

2. Move the cursor

G move to the end of the article

^ Move to the beginning of the line

$ move to end of line

3. Delete text

X Delete a text after the cursor

X Delete the previous text of the cursor

DD Delete the line where the cursor is located

Vim Entry-level use

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.