Close all viewports (split screens) in Vim at once

cdated picture cdated · Dec 13, 2010 · Viewed 7.6k times · Source

When I use Vim I tend to split my screen in various ways, but when I want to close the editor I have to close each split separately. Is there a way to close all the splits at one regardless of how many splits I have open?

Answer

Randy Morris picture Randy Morris · Dec 13, 2010

Use :qa for "quit all".

If you have unsaved buffers you'll have to add a bang: :qa!.