Vim Tips Wiki
(rewrite taking hint from new comment (now removed): this tip is top of Google for save/quit all)
No edit summary
Line 33: Line 33:
   
 
==Comments==
 
==Comments==
  +
  +
  +
[http://www.vipsexshop.com.br Sex Shop]
  +
[http://www.requintesexshop.com.br Sex Shop]
  +
[http://www.sexshop.com.vc Sex Shop]
  +
[http://www.belasexshop.com.br Sex Shop]
  +
[http://www.belasexshop.com Sex Shop]
  +
[http://blog.vipsexshop.com.br Dicas de Sexo]
  +
[http://www.viplingerie.com.br Lingerie]
  +
[http://www.vipcalcinhas.com.br Calcinhas]
  +
[http://www.uniformesbr.com Uniformes Profissionais]
  +
[http://www.uniformesbr.com Uniformes]

Revision as of 13:17, 8 November 2011

Tip 652 Printable Monobook Previous Next

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).

:wa write all changed files (save all changes), and keep working
:xa exit all (save all changes and close Vim)
:qa quit all (close Vim, but not if there are unsaved changes)
:qa! quit all (close Vim without saving—discard any changes)

The :wa and :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?".

See also

References

Comments

Sex Shop Sex Shop Sex Shop Sex Shop Sex Shop Dicas de Sexo Lingerie Calcinhas Uniformes Profissionais Uniformes