Created
March 23, 2012 15:10
-
-
Save dingram/2171573 to your computer and use it in GitHub Desktop.
vimrc sessions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"***************************************************************************** | |
" 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