vim强制退出不保存
时间: 2023-08-26 17:15:17 浏览: 110
要在vim中强制退出而不保存,可以按下Esc键,然后输入":q!",最后按Enter键。这个命令告诉vim放弃对文件的修改并强制退出。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *2* [linux vim保存退出命令](https://blog.csdn.net/yetaodiao/article/details/128458280)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *3* [vim编辑保存退出](https://blog.csdn.net/weixin_43890876/article/details/123111733)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文