12 if empty(getbufvar(a:buf, '&buftype')) && a:file!~#'\v^\w+\:\/' |
12 if empty(getbufvar(a:buf, '&buftype')) && a:file!~#'\v^\w+\:\/' |
13 let dir=fnamemodify(a:file, ':h') |
13 let dir=fnamemodify(a:file, ':h') |
14 if !isdirectory(dir) |
14 if !isdirectory(dir) |
15 call mkdir(dir, 'p') |
15 call mkdir(dir, 'p') |
16 endif |
16 endif |
|
17 endif |
|
18 endfunc |
|
19 |
|
20 func! vimrc#AutoSessionConfig() abort |
|
21 if strlen(v:servername) > 0 && match(v:servername, 'VIM') == -1 |
|
22 let g:unite_source_session_default_session_name = tolower(v:servername) |
|
23 let g:unite_source_session_enable_auto_save = 1 |
|
24 |
|
25 UniteSessionLoad |
17 endif |
26 endif |
18 endfunc |
27 endfunc |
19 |
28 |
20 func! vimrc#VundleInstallAndBegin() abort |
29 func! vimrc#VundleInstallAndBegin() abort |
21 let l:vundle_readme = expand(g:on_windows |
30 let l:vundle_readme = expand(g:on_windows |