# write current edit to the file (save) :w # write then close file after :wq # exit file without writing (discard) :q!
# Abandon existing buffer and reload the file you are editing (works like reset file) :e! # Force exit vim (similar to abandon) :cq