命令行vim保存退出
时间: 2023-08-25 12:15:41 浏览: 100
要在命令行中使用Vim编辑器保存并退出,可以按照以下步骤操作:首先,按下Esc键,确保处于命令模式(Command mode)。然后,输入:wq(不含引号),表示保存并退出。这样,你的编辑内容将会被保存,并且Vim编辑器会自动关闭。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Linux系列文章 —— vim的基本操作(误入vim退出请先按「ESC」再按:q不保存退出,相关操作请阅读本文)](https://blog.csdn.net/qq_64589446/article/details/128634134)[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 style="max-width: 50%"]
- *2* [Linux(Ubuntu、CentOS)命令行编辑文件后如何保存退出](https://blog.csdn.net/m0_51913750/article/details/131735671)[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 style="max-width: 50%"]
[ .reference_list ]
阅读全文