sponsor Vim development Vim logo Vim Book Ad

autosess : Auto save/load sessions

 script karma  Rating 15/5, Downloaded by 751    Comments, bugs, improvements  Vim wiki

created by
Alex Efros
script type
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.

Source: https://github.com/powerman/vim-plugin-autosess
install details
Using pathogen (recommended).
a) Using source:
    $ git clone https://github.com/powerman/vim-plugin-autosess.git ~/.vim/bundle/autosess/
    $ vi
b) Using .zip archive:
    $ mkdir ~/.vim/bundle/autosess/
    $ unzip autosess.zip -d ~/.vim/bundle/autosess/
    $ vi
c) Using  .vmb vimball:
    $ mkdir ~/.vim/bundle/autosess/
    $ vi autosess.vmb
    :UseVimball ~/.vim/bundle/autosess

Plain install without pathogen.
a) Using .zip archive:
    $ unzip autosess.zip -d ~/.vim/
    $ vi
    :helptags ~/.vim/doc
b) Using .vmb vimball:
    $ vi autosess.vmb
    :so %
    :helptags ~/.vim/doc

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
autosess.vmb 1.2.0 2012-12-19 7.0 Alex Efros vimball
autosess.zip 1.2.0 2012-12-19 7.0 Alex Efros add option g:autosess_dir
autosess.vmb 1.1 2012-01-17 7.0 Alex Efros vimball
autosess.zip 1.1 2012-01-17 7.0 Alex Efros Don't restore empty useless buffers with &buftype 'quickfix' or 'nofile'.
autosess.vmb 1.0 2012-01-15 7.0 Alex Efros vimball
autosess.zip 1.0 2012-01-15 7.0 Alex Efros initial release
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo