1 "Automatic installation of vim-plug.
2 "https://github.com/junegunn/vim-plug/wiki/tips
3 if empty(glob('~/.vim/autoload/plug.vim'))
4 silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
5 \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
6 autocmd VimEnter * PlugInstall --sync | source ~/.vim/init.vim
10 call plug#begin('~/.vim/plugged')
12 source ~/.vim/plugins.vim
14 " Load various conditinoal plugin sets
15 if filereadable($HOME . '/.vim/plugins-local.vim')
16 source ~/.vim/plugins-local.vim
20 source ~/.vim/plugins-noroot.vim
23 source ~/.vim/plugins-noroot-nolowendbox.vim
30 " Call the config functions of the plugins
32 if filereadable($HOME . '/.vim/plugins-local.vim')
33 call PluginsLocalConfig()
36 call PluginsNorootConfig()
38 call PluginsNorootNolowendboxConfig()
43 function s:PostConfig()
44 "Automatically install missing plugins
45 "https://github.com/junegunn/vim-plug/wiki/extra
46 if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
47 PlugInstall --sync | q
51 autocmd VimEnter * call s:PostConfig()