'how to set vim buffer like normal IdE does autosave keeping all recent opened files?without plugin

I tried :set autowrite

but I want to autosave vim buffer also like when I code last time what size of which file I kept and wannt to open vim buffers all same as last time.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source