Skip to content

Instantly share code, notes, and snippets.

@michaelmob
Last active April 9, 2021 18:15
Show Gist options
  • Save michaelmob/fb9c0186d646b7482247ca3085afc2af to your computer and use it in GitHub Desktop.
Save michaelmob/fb9c0186d646b7482247ca3085afc2af to your computer and use it in GitHub Desktop.
Fetch plug.vim with wget
if empty(glob('~/.vim/autoload/plug.vim'))
let plugurl = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
silent execute '!wget -P ~/.vim/autoload ' . plugurl
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