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 red_a.jpg.


Click to view larger image

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

To exit vi:


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 gray_a.jpg.

  • + Share This
  • 🔖 Save To Your Account