Skip to content

Instantly share code, notes, and snippets.

@dustractor
Created April 5, 2022 02:36
Show Gist options
  • Save dustractor/6e10075f187cd01941dc0c6b6c008f56 to your computer and use it in GitHub Desktop.
Save dustractor/6e10075f187cd01941dc0c6b6c008f56 to your computer and use it in GitHub Desktop.
bootstrap vim-plug
if has('win32')
if empty(glob(expand('$HOMEDRIVE/$HOMEPATH/vimfiles/autoload/plug.vim')))
exe 'silent !curl -fLo '.expand('$HOMEDRIVE/$HOMEPATH/vimfiles/autoload/plug.vim').' --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
else
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
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment