Skip to content

Instantly share code, notes, and snippets.

@siancu
Created December 21, 2020 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siancu/8220b244bc69b4fc4b4e1c45b33b7e5e to your computer and use it in GitHub Desktop.
Save siancu/8220b244bc69b4fc4b4e1c45b33b7e5e to your computer and use it in GitHub Desktop.
Check for plug and install it if needed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment