How do I exit the VIM editor?

Source: Internet
Author: User

1. Click the ESC key, which means Vim is ready to accept the order.

2. Then directly tap the keyboard input command.

This step requires that you do not attempt to use the mouse to find anywhere on the screen where you want any input commands.

You just need to click the ESC key, hit the keyboard directly, then type the command, enter the line.

Also, note that the input method needs to be in English state.


Here are a variety of common commands:

1:q--Exit (if you do not do anything, you can exit directly, if you modify the content has not been saved, so it will not be returned)

2:q! --Do not save the exit (without saving, you can directly exit, that is, strong back)

3:WQ--Write file and exit

4:wq! --Force write and exit (some open files are read-only and can be used with this command)

This article comes from the blog, "How self-disciplined and free", so be sure to keep this source http://lixiaoyao666.blog.51cto.com/3027824/1929614

How do I exit the VIM editor?

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.