forked from mutewinter/dot_vim
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplug.vim
More file actions
25 lines (19 loc) · 717 Bytes
/
plug.vim
File metadata and controls
25 lines (19 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
" ----------------------------------------
" Plug
" ----------------------------------------
" If vim-plug not installed, automatically install it!
if empty(glob('$HOME/.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 | source ~/.vim/init.vim
endif
call plug#begin('$HOME/.vim/plugged')
let g:plug_loading_plugins = 1
for file in split(glob('$HOME/.vim/plug_ins/*.vim'), '\n')
exe 'source' fnameescape(file)
endfor
for file in split(glob('$HOME/.vim/plug_ins/custom/*.vim'), '\n')
exe 'source' fnameescape(file)
endfor
unlet g:plug_loading_plugins
call plug#end()