fix plugin check on vim startup

This commit is contained in:
Marty Oehme 2019-05-15 10:28:12 +02:00
parent 8504d8f769
commit 244b1e98bd

View file

@ -17,10 +17,10 @@
" "
" automatically install vim-plug if it does not exist " automatically install vim-plug if it does not exist
" Note: this installs it in the neovim folder, not the vim folder " Note: this installs it in the neovim folder, not the vim folder
if empty(glob('~/.vim/autoload/plug.vim')) if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | q
endif endif
" automatically install any missing plugins " automatically install any missing plugins