March 10

How to Quit VI editor without saving anything?

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

  1.  press Esc.
  2. Press : (colon).
  3. Enter the following:
    q!
    This will quit the editor, and all changes you have made to the document will be lost.


Posted March 10, 2021 by Ray in category "Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.