Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
created 2004 · complexity intermediate · author Andreas Berg · version 6.0
Vim can open multiple files, each in its own buffer. Here is how to save all changes and continue working, or save all changes and exit Vim. It is also possible to quit all (discard changes).
|write all changed files (save all changes), and keep working|
|exit all (save all changes and close Vim)|
|quit all (close Vim, but not if there are unsaved changes)|
|quit all (close Vim without saving—discard any changes)|
:xa commands only write a file when its buffer has been changed. By contrast, the
:w command always writes the current buffer to its file (use
:update to save the current buffer only if it has been changed).
Warning: If you enter
:qa!, Vim will discard all changes without asking "are you sure?".