Search code examples
vimvishortcut

How do I close all open tabs at once?


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

How can I close them all at once?


Solution

  • Shortest/simplest/fastest way would be:

    :qa
    

    To save work in all tabs and quit:

    :wqa