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. 回车

相关文章:

  • 2022-03-01
  • 2021-12-07
  • 2021-12-23
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
猜你喜欢
  • 2022-01-02
  • 2021-12-06
  • 2021-12-23
  • 2021-12-23
相关资源
相似解决方案