What is the Vim command to quit all open windows?

You can quit all loaded and open buffers, splits and tabs with:

:qa

If you want to quit without saving:

:qa!

You could assign a mapping to do this with a single stroke, this assigns the comma to quit everything without prompting to save:

nnoremap , :qa!<CR>

:wqall writes before closing, that might be useful.

Type :he :qa in vim for more info

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)