Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is a command that exits unsaved in vim

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report