What is the command to exit without saving in vim?

hzc
Release: 2021-05-28 14:52:44
Original
24109 people have browsed it

The command to exit without saving in vim is [:q!], which means forced exit without saving, [:w] means saving but not exiting, [:wq] means saving and exiting, [.q] 】 is to exit.

What is the command to exit without saving in vim?

When usingviminLinux, entervim xxx.fileEnter OK How to save the file content?

PressESC, you can enter in the lower left corner

:wSave but do not exit

:wqSave and exit

:qExit

:q!Force exit without saving

:e!Discard all modifications and edit the command history starting from the last time you saved the file

Recommended tutorial: "linux tutorial"

The above is the detailed content of What is the command to exit without saving in vim?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
vim
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!