Home > Article > Operation and Maintenance > vim exit command
vim command:
:w Save the file without exiting vim
:w file Save the modifications to file without exiting vim
:w! Force save without exiting vim
:wq Save the file and exit vim
:wq! Force save the file without exiting vim Exit vim
:q Exit vim without saving the file
:q! Force exit vim without saving the file
Recommended tutorial: linux tutorial
The above is the detailed content of vim exit command. For more information, please follow other related articles on the PHP Chinese website!