From: Edward Delaporte Date: Sat, 23 Oct 2021 04:10:30 +0000 (+0100) Subject: Bootstrap vim-plug X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/12e1f30f54935b0ebeee2a773275b9aedeaa311a?ds=inline Bootstrap vim-plug --- diff --git a/vimrc b/vimrc index 712d0c0..601a676 100644 --- a/vimrc +++ b/vimrc @@ -21,6 +21,15 @@ set omnifunc=syntaxcomplete#Complete filetype off " required +" ================= +" Install vim-plug if missing +" ================= +let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' +if empty(glob(data_dir . '/autoload/plug.vim')) + silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' + autocmd VimEnter * PlugInstall --sync | source $MYVIMRC +endif + " ================= " Here be Plugins! " =================