add autoinstaller
This commit is contained in:
parent
269890a86f
commit
353c7ec7e1
1 changed files with 11 additions and 0 deletions
11
.vimrc
11
.vimrc
|
@ -1,3 +1,14 @@
|
|||
" Install vim-plug if not found
|
||||
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
|
||||
endif
|
||||
|
||||
" Run PlugInstall if there are missing plugins
|
||||
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
|
||||
\| PlugInstall --sync | source $MYVIMRC
|
||||
\| endif
|
||||
|
||||
call plug#begin()
|
||||
|
||||
Plug 'preservim/nerdtree'
|
||||
|
|
Loading…
Reference in a new issue