dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | Submodules | README | LICENSE

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