I like to split my vim screen in 3. one :vsplit and one :split. I want these windows and the files I worked on to be saved when I close vim. I also want these windows to aut
The autosess plugin works well for this. Also available on GitHub: powerman/vim-plugin-autosess.
From the plugin's description:
Start Vim without file arguments to automatically load previous session for current directory. This make easier work with complex projects - just chdir to project directory and start
vim
.When you quit from Vim, if there are more than one open tab/window, session will be automatically saved. This let you edit single files in same directory without breaking your saved session. (Quickfix and vimdiff's windows are ignored.)
If you quit from Vim with no open files, session will be deleted. This let you start usual empty Vim in this directory next time.