Disable automatic session restore

This commit is contained in:
Loic Nageleisen 2020-06-29 14:27:39 +02:00
parent 0711305c3c
commit 9c50f3be60

13
vimrc
View file

@ -245,12 +245,13 @@ endif
map <leader>s :mksession!<CR>
" 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()
"function! RestoreSession()
" if argc() == 0 && filereadable("Session.vim") "vim called without arguments
" "let answer = confirm('foo?', '&Yes\nNo', 1)
" execute 'source Session.vim'
" end
"endfunction
"autocmd VimEnter * call RestoreSession()
" Matchit
source $VIMRUNTIME/macros/matchit.vim