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'