diff --git a/bin/software-install.sh b/bin/software-install.sh index d43d1b7..24a30ea 100755 --- a/bin/software-install.sh +++ b/bin/software-install.sh @@ -96,9 +96,12 @@ fi #------------------------------- #------------------------------- -# Ensure Vim plugins are up-to-date +# Ensure Vim plugins are up-to-date, if older than one day #------------------------------- -vim +PluginInstall! +PluginClean! +qall +find .vim/updated -mtime +0 -exec bash -c "\ + vim +PluginInstall! +PluginClean! +qall + touch .vim/updated +" \; #------------------------------- echo "#-------------------------------"