centos esc does not work solution: 1. In the "INSERT" state, press the "Esc" key to exit; 2. Press "Shift Esc" to see if "INSERT" disappears; 3. Press " :q" without saving or ":wq" to save and exit.
The operating environment of this tutorial: CentOS 7 system, Dell G3 computer.
What should I do if centos esc doesn’t work?
Centos In INSERT mode, there is no response when pressing ESC
If it is in INSERT mode, press Esc to exit. If there is no response, press Shift Esc
, and you will find that -- INSERT -- disappears. At this time, press :q not to save or :wq to save and exit.
Related introduction:
1.Vi basic operation
1) Enter vi
and enter vi and file at the system prompt. After entering the name, you will enter the vi full-screen editing screen:
$ vi myfile
After entering vi, you are in "command mode (command mode)", you need to switch to "insert mode ( Insert mode)" to be able to enter text.
2) Switch to Insert mode to edit the file
Click the letter "i" in "Command mode" to enter "Insert mode" )", "ESC" key to go to "command mode (command mode)
3) Exit vi and save the file
In "command mode (command mode)", click ":" colon key to enter "Last line mode", for example:
: w filename (enter "w filename" to save the article with the specified file name filename)
: wq (enter " wq", save and exit vi)
: q! (Enter q!, force exit vi without saving)
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of What to do if centos esc doesn't work. For more information, please follow other related articles on the PHP Chinese website!