The Linux VIM command uses

Source: Internet
Author: User

Basically vim can be divided into three states, namely command mode, insert mode, and bottom line mode.

Mode Switching method

Enter "I" in the command mode, enter the Insert mode, you can edit the text content, after editing, "ESC" key exit edit, enter the command line mode.

Enter ":" in the command line mode to enter the bottom row mode, input q,wq,q! in the bottom row mode Can exit

: w filename (enter "w filename" to save the article with the filename you specified)

: wq (input "wq", save and Exit VI)

: q! (Enter q!, do not save the mandatory exit VI)

The Linux VIM command uses

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.