How to use VIM to remember open files between sessions?
Have a look at the :mksession
command.
A Session keeps the Views for all windows, plus the global settings. You can save a Session and when you restore it later the window layout looks the same. You can use a Session to quickly switch between different projects, automatically loading the files you were last working on in that project.
Check help for mksession