How do I close all open tabs at once?

Srikanth picture Srikanth · Feb 4, 2009 · Viewed 92.8k times · Source

If I have 10 tabs opened, I have to close each one using ":q" separately.

How can I close them all at once?

Answer

fuentesjr picture fuentesjr · Feb 4, 2009

Shortest/simplest/fastest way would be:

:qa

To save work in all tabs and quit:

:wqa