This is a simple vim plug-in to automatically save and update sessions. This way your open tabs and buffers are restored next time you open vim.
Re-opening tabs over and over again is just too tedious. Other vim plug-ins are doing similar things now, but I've had this solution running for a long time and I just published it here to make it easier to install with Vundle.
Using Vundle
Bundle 'ocr/vim-sessions'
Then start vim and call BundleInstall:
:BundleInstall
:mksession session.vim
Just call vim with no parameters. If session.vim exists in the current
directory, it will be restored.
If vim was opened with an existing session, then the session will be saved on exit.
Alternatively, you can save a session at anytime using the regular vim command:
:mksession! session.vim
Initial restore code borrowed from http://vim.runpaint.org/editing/managing-sessions/