VI editor for Linux (centos 6.x) every day for half an hour

Source: Internet
Author: User

To facilitate Directory creation, use the dektop directory as the editing space to avoid confusion in other file directories.

Three VI modes:

  • GENERAL: Open the document in normal mode. Press ESC to normal mode in other modes. Can be deleted, copied, or pasted.
  • Command Line: Type 『:
    /? You can move the cursor to the bottom line by clicking any of the three buttons. In this line, you can enter a command. You can search, read, save, replace, exit, and display the row number. For example, in normal mode, press: WQ to save and leave the VI editor. If the document permission is incorrect, for example,-r --
    You may not be able to write data. You can use ": WQ! "Add an exclamation point to force the write!
  • Edit mode: "I, I, O, O,
    A, A, R, R 』

 

Key Description: http://vbird.dic.ksu.edu.tw/linux_basic/0310vi_2.php#vi_command

Go to the button.

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.