-"Automatically install missing plugins
-"https://github.com/junegunn/vim-plug/wiki/extra
-autocmd VimEnter *
- \ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
- \| PlugInstall --sync | q
- \| endif
+
+" Call the config functions of the plugins
+call PluginsConfig()
+if filereadable($HOME . '/.vim/plugins-local.vim')
+ call PluginsLocalConfig()
+endif
+if $USER != "root"
+ call PluginsNorootConfig()
+ if g:lowendbox == 0
+ call PluginsNorootNolowendboxConfig()
+ endif
+endif
+
+
+function s:PostConfig()
+ "Automatically install missing plugins
+ "https://github.com/junegunn/vim-plug/wiki/extra
+ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
+ PlugInstall --sync | q
+ endif
+endfunction
+
+autocmd VimEnter * call s:PostConfig()