sessionmanager This script makes use of the mksession command and saves sessions to g:session_directory. Runs mksession when exiting vim.