March
10
How to Quit VI editor without saving anything?
To quit the vi editor without saving any changes you’ve made:
- press Esc.
- Press : (colon).
- Enter the following:
q!
This will quit the editor, and all changes you have made to the document will be lost.