vimrc: add augroup install_vim_plug
This commit is contained in:
parent
d148a982f9
commit
4eee674050
@ -8,11 +8,14 @@ scriptencoding=utf8
|
||||
filetype off "required
|
||||
|
||||
|
||||
augroup install_vim_plug
|
||||
autocmd!
|
||||
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
|
||||
augroup END
|
||||
|
||||
augroup plug_auto_install
|
||||
autocmd!
|
||||
|
Loading…
Reference in New Issue
Block a user