From 782aaa658bb089b4ac7b7b3077d3a4c0678bf094 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Fri, 18 Aug 2023 00:20:04 +0200 Subject: vim post install hook for default plugins --- hooks/installed..vim.hook | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 hooks/installed..vim.hook (limited to 'hooks') diff --git a/hooks/installed..vim.hook b/hooks/installed..vim.hook new file mode 100755 index 0000000..243eac1 --- /dev/null +++ b/hooks/installed..vim.hook @@ -0,0 +1,22 @@ +#!/bin/bash + +cd "$1" || exit 1 +mkdir -p bundle-active/ || exit 1 +cd bundle-active/ || exit 1 + +DEFS=( + 'vim-pathogen' + 'vim-airline' + 'vim-airline-themes' + 'vim-fugitive' + 'rainbow' +) + +pwd + +echo Activating default vim plugins: "${DEFS[@]}" + +for f in "${DEFS[@]}"; do + [ -L "$f" ] && continue + ln -s "../bundle/$f" "$f" +done -- cgit v1.2.3