28 func! vimrc#AutoSessionConfig() abort |
28 func! vimrc#AutoSessionConfig() abort |
29 if strlen(v:servername) > 0 && match(v:servername, 'VIM') == -1 |
29 if strlen(v:servername) > 0 && match(v:servername, 'VIM') == -1 |
30 exec 'UniteSessionLoad ' . tolower(v:servername) |
30 exec 'UniteSessionLoad ' . tolower(v:servername) |
31 endif |
31 endif |
32 endfunc |
32 endfunc |
33 |
|
34 func! vimrc#VundleInstallAndBegin() abort |
|
35 let bundlepath = g:myvim . '/bundle' |
|
36 |
|
37 if !filereadable(bundlepath . '/vundle/README.md') |
|
38 if !executable('git') |
|
39 echo "Can't autoinstall Vundle without git" |
|
40 return |
|
41 endif |
|
42 |
|
43 if !isdirectory(bundlepath) |
|
44 call mkdir(bundlepath, 'p') |
|
45 endif |
|
46 exec 'cd ' . bundlepath |
|
47 silent !git clone --depth 1 https://github.com/gmarik/vundle |
|
48 cd - |
|
49 |
|
50 echo "Installed Vundle, run :PluginInstall if desired" |
|
51 endif |
|
52 |
|
53 let &runtimepath .= ',' . bundlepath . '/vundle' |
|
54 call vundle#begin(bundlepath) |
|
55 endfunc |
|