Without saving changes
To quit
vi
without saving the contents of the buffer to the file:
:q!
This site maintained by
webmaster@cs.auckland.ac.nz