blob: 590f18c9d023a3a76e66b840e4cd12d646f945aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
let s:plugins = split(expand('~/.dotfiles/.vim/plugins/*.vim'))
function! s:load_plugins()
for plugin in s:plugins
if plugin !~ 'init.vim'
exec "source " . plugin
endif
endfor
endfunction
call plug#begin('~/.vim/plugged')
call s:load_plugins()
call plug#end()
|