vim: move sessions directory

master
Guillaume DOTT 2012-11-27 17:26:06 +01:00
parent f3ea899e9f
commit 6ce8be9db1
1 changed files with 10 additions and 0 deletions

View File

@ -138,6 +138,16 @@ map <F12> ggVGg?
let g:session_autoload = 'no' let g:session_autoload = 'no'
let g:session_autosave = 'no' let g:session_autosave = 'no'
if filewritable(expand("~/.vim/tmp/sessions")) == 2
let g:session_directory=$HOME."/.vim/tmp/sessions"
else
if has("unix") || has("win32unix")
call system("mkdir $HOME/.vim/tmp/sessions -p")
let g:session_directory=$HOME."/.vim/tmp/sessions"
endif
endif
" closetag " closetag
autocmd FileType html,htmldjango,jinjahtml,eruby,mako let b:closetag_html_style=1 autocmd FileType html,htmldjango,jinjahtml,eruby,mako let b:closetag_html_style=1
autocmd FileType html,xhtml,xml,htmldjango,jinjahtml,eruby,mako source ~/.vim/bundle/closetag.vim/plugin/closetag.vim autocmd FileType html,xhtml,xml,htmldjango,jinjahtml,eruby,mako source ~/.vim/bundle/closetag.vim/plugin/closetag.vim