VI use

Press ESC to jump to command mode, then:

:w save file without exiting vi
:w file additionally save changes to file without exiting vi
:w! force save without exiting vi
:wq save file and exit vi
:wq ! Force save the file and exit vi
q: do not save the file, quit vi
:q! do not save the file, force quit vi
:e!

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326982414&siteId=291194637