Skip to content

Instantly share code, notes, and snippets.

@dingram
Created March 23, 2012 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dingram/2171573 to your computer and use it in GitHub Desktop.
Save dingram/2171573 to your computer and use it in GitHub Desktop.
vimrc sessions
"*****************************************************************************
" Vim Sessions
"*****************************************************************************
" ignore 'options' because of latex-suite (would be pointless to save that!)
set sessionoptions=blank,curdir,folds,help,resize,tabpages,winsize
if has('win32') || has('win64')
set sessionoptions+=slash,unix
map <leader>ss :mksession! ~/_vimsession<cr>
map <leader>sr :source ~/_vimsession<cr>
else
map <leader>ss :mksession! ~/.vim/.session<cr>
map <leader>sr :source ~/.vim/.session<cr>
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment