Without saving changes
To quit
vi
without saving the contents of the buffer to the file:
:q!