Vim Common commands

Source: Internet
Author: User

One, common commands

1. "Sudo vim file name", edit the file as Administrator.

2. ": q!" Force exit

(PS: When you change the httpd.conf file, you will be prompted E45: ‘readonly‘ option is set (add ! to override) when you save ", must use": wq! " Save ....

If you continue to prompt " "readonly-file-name" E212: Can‘t open file for writing ", you need to use the admin sudo command to perform vim )

(See the example above for MAC OS X enable Web server-Pinterest and vim with normal user-initiated how to save files that require root privileges-libfeihu.)

3. "/Search Content" Search content

4. Refer to " Use of VIM (iii)-Lonely Micro Blue-Blog channel-csdn.net".

  

Vim Common commands

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.