How to quit vi editor?

by Yang Yang on April 13, 2009

Share This Article:
Subscribe to Kavoir: blog feed

To exit and quit vi text editor, you need to type:

:q

To save the changes you have made and quit:

:wq

To discard the changes and quit without saving the file:

:q!

What? You have no idea what I’m talking about?!

Share This Article:
Subscribe to Kavoir: blog feed

You should also read:

Leave a Comment

Previous post:

Next post: