From d767628291a937bf93e65211ba1990693dd87600 Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Sat, 15 Jun 2024 09:30:24 -0400 Subject: [PATCH] Adding automatic vim plugin update and removals --- .chezmoiscripts/run_after_update-vim_plugins.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .chezmoiscripts/run_after_update-vim_plugins.sh diff --git a/.chezmoiscripts/run_after_update-vim_plugins.sh b/.chezmoiscripts/run_after_update-vim_plugins.sh new file mode 100644 index 0000000..ddb41e2 --- /dev/null +++ b/.chezmoiscripts/run_after_update-vim_plugins.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Install new and remove old plugins +if command -v vim >/dev/null 2>&1; then + echo "Updating Vim plugins" + nvim '+PlugUpdate' '+PlugClean!' '+PlugUpdate' '+qall' +fi