automatic session restore

This commit is contained in:
Loic Nageleisen 2011-12-31 16:37:26 +01:00
parent 0a056ecbe8
commit ef855b400a

8
vimrc
View file

@ -224,3 +224,11 @@ augroup resCur
endif
augroup END
" restore session if Session.vim exists
function! RestoreSession()
if argc() == 0 && filereadable("Session.vim") "vim called without arguments
execute 'source Session.vim'
end
endfunction
autocmd VimEnter * call RestoreSession()