Vi text insertion command summary

Source: Internet
Author: User
Vi text insert command summary text insert operation in command mode, any character entered by the user is interpreted and executed by vi as a command. if the user wants to treat the entered character as text content, switch the vi operating mode from command mode to text input mode... information & vi text insert command summary text insert operation in command mode, any character entered by the user is interpreted and executed as a command by vi, if you want to use the entered characters as text content, you should first switch the vi working mode from command mode to text input mode, by using the following command: the Insert command vi provides two Insert commands: Key deletion error input. At this time, the vi is inserted, and the "-- INSERT --" (INSERT) is displayed at the downlink of the screen. The I command moves the cursor to the beginning of the current line and inserts text before the cursor. The append command vi provides two additional insert commands: the and Aa commands are used to append new text after the current position of the cursor, and the newly entered text is placed after the cursor, the original text after the cursor moves backward accordingly, and the cursor can be anywhere in a row. Unlike command A, command a moves the cursor to the end of the line from where to insert new text. When you enter Command A, the cursor automatically moves to the end of the row. Use the open command to insert new lines before or after a line. Vi provides two open commands: the o and O commands will open a new line under the row where the cursor is located, and place the cursor at the beginning of the line waiting for the input text. The O command is opposite to the o command. the O command inserts a line above the line where the cursor is located, places the cursor at the beginning of the line, and waits for the input text.
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.