vi不保存退出

To quit the vi editor without saving any changes you've made

  • If you are currently in insert or append mode, press Esc .
  • Press : (colon). The cursor should reappear at the lower left corner of the screen beside a colon prompt.
  • Enter the following: q!

步骤如下:

  1. 按ESC
  2. 按住shift键 + :键
  3. 输入q!
  4. 回车
posted @ 2018-05-17 22:16  梦醒江南·Infinite  阅读(1654)  评论(0编辑  收藏  举报