space q will close the application if all buffers are saved, otherwise a dialog box shows up with the buffers that are not saved.