sponsor Vim development Vim logo Vim Book Ad

Sesiones.vim : Plugin for managing sesions the easy way

 script karma  Rating 21/8, Downloaded by 292    Comments, bugs, improvements  Vim wiki

created by
J. Manuel Picaza
script type
Small function to save, load, overwrite and delete vim sessions.
:mkview and related commands are not difficult to manage but where to save the sessions and  with what name is sometimes tricky.

This plugin use a dedicate folder ($VIM/vimfiles/session/) to save all sessions, using as name the full path-name to the associated file. This way you don't have to worry about where have you saved your sesion; just you only have to remember what file is associated to the session, open it and press <Shift-F3>
The functions can be accessed both in the "plugin -> Sessions" tab or with the keyboard.

Manage it from the menu in plugins or with the keyboard:
<F3> to save a session
<Shift-F3> to load a session
<Crtl-Shift-F3> to overwrite an existing session
d<F3> to delete an existing session
install details
Copy the Sesiones.vim script to the $HOME/.vim/plugin or the $HOME/vimfiles/plugin or the $VIM/vimfiles directory.
Refer to the ':help add-plugin', ':help add-global-plugin' and ':help runtimepath' topics for more details about Vim plugins.

For those guys who use pathogen, the installation should be as simple as a git clone:

$ cd ~/.vim/bundle
$ git clone git://github.com/jmpicaza/Sesiones.vim.git

In .vimrc or _vimrc, add the lines:
"Sesiones Plugin
"let g:sesiones_path="C:\Documents and Settiing\yourUserName\someFolder"
If not, the default loaction will be "~/.vimSessions" or "$VIM\_vimSessions" or "$USERPROFILE\_vimSessions" depending of the operating system and rw permissions.

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
Sesiones.vim 0.2 2011-04-13 7.0 J. Manuel Picaza Now you can choose what folder to use for keepeng the sessions!
Sesiones.vim 0.1 2011-04-06 7.0 J. Manuel Picaza Initial upload
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