[FIX][VIM] Download vim-plug without user input

This commit is contained in:
Bruno BELANYI 2020-08-21 21:36:36 +02:00
parent 4bda2c3f27
commit 9107dad1e2

View file

@ -42,10 +42,10 @@ set tabstop=8
" Credit to github.com/captbaritone " Credit to github.com/captbaritone
if empty(glob("~/.vim/autoload/plug.vim")) if empty(glob("~/.vim/autoload/plug.vim"))
" Ensure all needed directories exist (Thanks @kapadiamush) " Ensure all needed directories exist (Thanks @kapadiamush)
execute '!mkdir -p ~/.vim/plugged' silent! execute '!mkdir -p ~/.vim/plugged'
execute '!mkdir -p ~/.vim/autoload' silent! execute '!mkdir -p ~/.vim/autoload'
" Download the actual plugin manager " Download the actual plugin manager
execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim' silent! execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim'
endif endif
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')