mirror of
https://github.com/lloeki/vimfiles.git
synced 2025-12-06 05:24:39 +01:00
Disable automatic session restore
This commit is contained in:
parent
0711305c3c
commit
9c50f3be60
1 changed files with 7 additions and 6 deletions
13
vimrc
13
vimrc
|
|
@ -245,12 +245,13 @@ endif
|
||||||
|
|
||||||
map <leader>s :mksession!<CR>
|
map <leader>s :mksession!<CR>
|
||||||
" Restore session if Session.vim exists
|
" Restore session if Session.vim exists
|
||||||
function! RestoreSession()
|
"function! RestoreSession()
|
||||||
if argc() == 0 && filereadable("Session.vim") "vim called without arguments
|
" if argc() == 0 && filereadable("Session.vim") "vim called without arguments
|
||||||
execute 'source Session.vim'
|
" "let answer = confirm('foo?', '&Yes\nNo', 1)
|
||||||
end
|
" execute 'source Session.vim'
|
||||||
endfunction
|
" end
|
||||||
autocmd VimEnter * call RestoreSession()
|
"endfunction
|
||||||
|
"autocmd VimEnter * call RestoreSession()
|
||||||
|
|
||||||
" Matchit
|
" Matchit
|
||||||
source $VIMRUNTIME/macros/matchit.vim
|
source $VIMRUNTIME/macros/matchit.vim
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue