Publishers of technology books, eBooks, and videos for creative people

Home > Articles

This chapter is from the book

Exiting vi

Whew! Time to exit vi (Figure 4.16).

Figure 4.16

Figure 4.16 Use esc.jpg:q! to quit vi without saving changes.

To exit vi:

  • esc.jpg:q

    Enter command mode by typing esc.jpg, then type :q to quit vi. If you haven't saved your latest changes, vi will not quit and will tell you to use ! to override. To quit without saving your changes, use :q!, as shown in Figure 4.16.

Peachpit Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Peachpit and its family of brands. I can unsubscribe at any time.