diff --git a/home/.chezmoiscripts/run_onchange_after_20-install-vim-plugins.sh.tmpl b/home/.chezmoiscripts/run_onchange_after_20-install-vim-plugins.sh.tmpl index 94ad79c..05dae11 100644 --- a/home/.chezmoiscripts/run_onchange_after_20-install-vim-plugins.sh.tmpl +++ b/home/.chezmoiscripts/run_onchange_after_20-install-vim-plugins.sh.tmpl @@ -29,5 +29,7 @@ fi # writing a viminfo file. The optional number N is the value for 'verbose'. # Default is 10. # https://github.com/junegunn/vim-plug/wiki/tips#install-plugins-on-the-command-line -vim -es -u "${HOME}/.vim/vimrc" -i NONE -c "PlugClean!" -c "quitall" +# +# PlugClean! will return a non-zero status code in some cases +vim -es -u "${HOME}/.vim/vimrc" -i NONE -c "PlugClean!" -c "quitall" || true vim -es -u "${HOME}/.vim/vimrc" -i NONE -c "PlugInstall" -c "quitall"