Global Session Plugin
gsession.vim saves your session files into the same directory (
by default. and auto-detect your session file to load session file when you
are opening vim editor without arguments. you can also define your session dir
gsession.vim also save your session file when you are leaving vim editor.
gsession.vim also support making a local session file
<leader>sS, which is
:mksession! command. but you can define your favorite session
gsession.vim create different sessions for git branches. so session won't conflict between different branches.
let g:session_dir = '~/.vim/my-session'
if you prefer to put sessions in other place.
let g:local_session_filename = '.session.vim'
if you want a better session filename.
let g:gsession_non_default_mapping = 1
if you dont like the default mapping.
$ make install -f Makefile.pure
<leader> is the slash key )
create global session file (located in
~/.vim/session by default)
create local session file (Session.vim by default , same as you type
eliminate current session file (including local session file or global session file)
eliminate all session file (eliminate global session only).
make a named global session (completion supported)
load a named global session (completion supported)
make a named session in current path space (completion supported)
load a named session from current path space (completion supported)
Author: Cornelius Mail: email@example.com Web: http://oulixe.us