From 9c50f3be60e536518beb5d80637691c2207bf1ab Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Mon, 29 Jun 2020 14:27:39 +0200 Subject: [PATCH] Disable automatic session restore --- vimrc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/vimrc b/vimrc index 5670436..9c3252a 100644 --- a/vimrc +++ b/vimrc @@ -245,12 +245,13 @@ endif map s :mksession! " 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