How can VIM be opened in exactly the same state as when it was closed last time?

  question, vim

Just like Sublime and Webstorm, when it was opened, it was the same as when it was last closed?
I think this is quite practical, because basically the same project is opened every time.

: mksession will save a Session.vim in the current directory. the next direct vim -S Session.vim will be good.