blob: d40cb67080ff3c3d59a1f82d1f9ecc1549a73b71 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
"
" session_lazy.vim: Automatically resume a session from the current directory,
" if no other filename arguments were passed to Vim.
"
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
if exists('g:loaded_session_lazy') || &compatible
finish
endif
if !has('autocmd') || v:version < 700
finish
endif
let g:loaded_session_lazy = 1
" Set up
augroup session
autocmd!
autocmd VimEnter *
\ call session_lazy#Thaw()
autocmd VimLeavePre *
\ call session_lazy#Freeze()
augroup END
|