:mks or :mksession can be used to save and then restore the current editing session. It will savey things like your tabs, views, splits, window layouts, global variables, and more. You can pass :mks a filename as an argument to save the session file to. By default it writes to Session.vim Next time you open vim you can resume the session by sourcing the Session.vim file with:
vim -S Session.vim
Alternatively if you already have a vim session going and want to switch to another one, load one in with
:source Session.vim

Further Reading

:h :mksession :h :source

More Gifs