How can I Quit vi Editor without Saving Changes?

To quit the vi editor without saving any changes you’ve made, perform the following command:

Type colon (:)
Type q! after colon and press enter

Any changes made are lost and quit from vi editor.

If you are currently in insert or append mode, press Esc.

Rahinur Rahaman is an Oracle Database Administrator. Currently he is working at Square InformatiX Limited, Dhaka, Bangladesh.

Tagged with:
Posted in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>