" Place the following code in your .vimrc before plug#begin() call 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
但是上述下载总是出现问题, 手工进行以下下载也不行:
root@ukylin:/home/mg/.vim/autoload# cd .. root@ukylin:/home/mg/.vim# curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused me@ukylin:~/.vim/autoload$ wget https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim --2020-08-10 06:16:46-- https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 0.0.0.0, :: Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|0.0.0.0|:443... failed: Connection refused. Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|::|:443... failed: Connection refused. me@ukylin:~/.vim/autoload$