Without saving changes
To quit
vi
without saving the contents of the buffer to the file:
:q!
This site maintained by
unixhelp@mathcs.duq.edu