1. 程式人生 > >vi不保存退出

vi不保存退出

out PE data list AS without span pen ear

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

vi不保存退出