]> git.sthu.org Git - vimconf.git/blob - plugsetup.vim
vimwiki: Add template files
[vimconf.git] / plugsetup.vim
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
7 endif
8
9 call plug#begin('~/.vim/plugged')
10 source ~/.vim/plugins.vim
11 call plug#end()
12
13 "Automatically install missing plugins
14 "https://github.com/junegunn/vim-plug/wiki/extra
15 autocmd VimEnter *
16 \ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
17 \| PlugInstall --sync | q
18 \| endif