You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser.
How do I quit VI?
Answer
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!