:wqa

To save all changes and quit all files use the ex command :wqa

:wqa stands for "write & quit all"

Further Reading

:h :wqa :h :xa

More Gifs