diff --git a/.vimrc b/.vimrc index 807cc63..46da718 100644 --- a/.vimrc +++ b/.vimrc @@ -13,6 +13,12 @@ set wildmode=list:longest set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx " plugins +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 'morhetz/gruvbox' Plug 'vim-airline/vim-airline'