Home  >  Article  >  Operation and Maintenance  >  vim exit command

vim exit command

王林
王林Original
2020-05-12 11:17:455738browse

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!

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