CENTES
Go to vi edit and exit
After you change the file through vi/vim,
1. Press "i" to enter the editing state.
2. Press the " Esc " key to exit the " insert " mode,
3. Then enter a colon ( : ), followed by the following command: q! (Exit without saving)
or:
Press the Esc
key to exit the editing mode, enter to :wq
save and close the file.
:w save the file but do not exit 4102vi
:w file save the changes to the file separately, do not exit vi
:w! Force save, 1653 does not launch vi
:wq save the file and exit vi
:wq! Force save the file and exit vi
q : Do not save the file, exit vi
:q! Do not save the file, force quit vi
:e! Abandon all changes and start editing from the last time the file was saved