From 6ce8be9db15d681df051e1d22ba61c9892087f5a Mon Sep 17 00:00:00 2001 From: Guillaume DOTT Date: Tue, 27 Nov 2012 17:26:06 +0100 Subject: [PATCH] vim: move sessions directory --- vim/vimrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index 9b911e6..91b6a21 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -138,6 +138,16 @@ map ggVGg? let g:session_autoload = '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 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