include autoload magic for plugins

This commit is contained in:
Morgan McMillian 2021-05-03 13:09:16 -07:00
parent 0d08e2eb3e
commit dc20353478

5
.vimrc
View file

@ -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'