Try this in vim

From COMMAND mode, to close a file discarding any changes type q!