mirror of
https://github.com/lloeki/vimfiles.git
synced 2025-12-06 05:24:39 +01:00
automatic session restore
This commit is contained in:
parent
0a056ecbe8
commit
ef855b400a
1 changed files with 8 additions and 0 deletions
8
vimrc
8
vimrc
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue