50_vim.sh (506B)
1 #!/usr/bin/env bash 2 3 # Install vim-plug 4 [ ! -e ~/.vim/autoload/plug.vim ] && \ 5 curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ 6 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim 7 8 [ ! -e ~/.local/share/nvim/site/autoload/plug.vim ] && \ 9 curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ 10 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim 11 12 # Install and upgrade plugins 13 if [[ "$(type -P vim)" ]]; then 14 vim +PlugUpgrade +PlugUpdate +qall 15 fi