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, first, you should switch the vi working mode from the command mode to the text input mode by using the following command: Insert command vi provides two Insert commands: the text inserted by the I and I commands starts before the cursor position, and the <Backspace> key can be used to delete incorrect input during the insertion process. 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.
 

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.