Home  >  Article  >  Operation and Maintenance  >  What are the working modes of vi editor and how to convert them

What are the working modes of vi editor and how to convert them

王林
王林Original
2020-06-15 09:28:3924422browse

What are the working modes of vi editor and how to convert them

The vi editor has three basic working modes, namely: command line mode, text input mode and end-of-line mode.

How to switch between modes:

Command Mode (Command Mode) Input a, i, o to enter text input mode (Input Mode);

Text input mode (Input Mode) Press ESC to enter Command Mode;

Enter [:] under Command Mode to enter Last line Mode;

Last line If there is a command error in Last line Mode, it will return to Command Mode.

Recommended tutorial: linux tutorial

The above is the detailed content of What are the working modes of vi editor and how to convert them. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn