From dc20353478d0770ea26f085e6599ae39948257f3 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Mon, 3 May 2021 13:09:16 -0700 Subject: [PATCH] include autoload magic for plugins --- .vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.vimrc b/.vimrc index 037291e..797f906 100644 --- a/.vimrc +++ b/.vimrc @@ -44,6 +44,11 @@ autocmd FileType gemtext setlocal spell spelllang=en_us cc= wrap set listchars=tab:▸\ ,eol:¬,space:. " vim-plug, https://github.com/junegunn/vim-plug +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 call plug#begin() Plug 'https://github.com/fatih/vim-go' Plug 'https://github.com/peterhoeg/vim-qml'