Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is a command that exits unsaved in vim

Shulou Source: shulou.com Published: 2022-06-02 09:36:20 10月04日 Update

What is the exit do not save command in vim? In response to this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more small partners who want to solve this problem find a simpler and easier way.

The command to exit unsaved in vim is [:q! ], means forced exit, do not save,[:w] means save but do not exit,[:wq] means save and exit,[.q] means exit.

When using vim in Linux, enter vim xxx.file After entering the file contents, how to save it?

Press ESC, and you can enter it in the lower left corner.

:w Save but not quit

:wq Save and exit

:q Exit

:q! Forced exit, do not save

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

About what is the vim exit do not save the answer to the question shared here, I hope the above content can be of some help to everyone, if you still have a lot of doubts not solved, you can pay attention to the industry information channel to learn more related knowledge.

Tags: Commands questions inputs content documents more help compulsion answers easy easy history guys partners methods knowledge articles industry information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Xiaomi vpn MariaDB Huawei