Vim-Sessions is an automatic session generator, per project (aka directory) basis, for Vim editor.
Download the gzipball from Vim script homepage and
open the package using Vim and use the command :source %
. Or run the
following command:
vim sessions-<version>.vba.gz +":source %"
Done! All files will be extracted in your Vim home directory.
If you checkout from repository, install using the install task from bake:
bake install
This instruction will be create a Vimball file and install.
Or, use git and Pathogen plugin to manage your plugins in vim.
More information here: http://tammersaleh.com/posts/the-modern-vim-config-with-pathogen
After installing, specify your code directories (the folder where you save your projects) in your .vimrc:
let g:sessions_project_path = "$HOME/projects"
Now, when editing a file in folder under this dir, vim-session will consider a project. So it will save sessions when saving and exiting vim.
When you start vim again, in a dir under the same folder, this session will be reloaded.
You maybe contributes to source. So, send a feedback in issue tracker.
Vim-Sessions is hosted on following servers:
Visit the script homepage for more information.
Copyright (c) 2009 Edson Cesar edsono@gmail.com