From 365da4d65b692fda974d03d634f94b355e635ad7 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Tue, 25 Nov 2025 20:06:42 +0000 Subject: Now I'm using in built package manager of vim I made a script to update the plugins --- .local/bin/update-vim-plugins.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 .local/bin/update-vim-plugins.sh (limited to '.local/bin/update-vim-plugins.sh') diff --git a/.local/bin/update-vim-plugins.sh b/.local/bin/update-vim-plugins.sh new file mode 100755 index 0000000..5286434 --- /dev/null +++ b/.local/bin/update-vim-plugins.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +PLUGIN_DIR="${HOME}/.vim/pack" + +echo "Updating all plugins in ${PLUGIN_DIR}" +for directory in ${PLUGIN_DIR}/*; do + for subdir in "$directory"/start/* "$directory"/opt/*; do + if [ -d "${subdir}" ]; then + plugin=$(basename "${subdir}") + echo "Updating ${plugin}" + git -C "${subdir}" pull + fi + done +done -- cgit v1.2.3