Exiting (quitting) vi

Whew! Time to exit vi (Figure 4.14). Don't let the door hit you on the butt!

Figure 4.14. Use :q! to quit vi without saving changes.

To exit vi:

  • 							 :q
    Enter command mode with , 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 ...

Get Unix: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.