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

Home > Articles

  • Print
  • + Share This
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.

  • + Share This
  • 🔖 Save To Your Account