From 26a209f4f5e179667e83b8b40db6ae61a36967e4 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 18 Nov 2014 08:53:05 -0500 Subject: [PATCH] Fix helptag generation when the vimrc isnt loaded at startup --- update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update b/update index 916f698..5242e2b 100755 --- a/update +++ b/update @@ -244,13 +244,13 @@ fi ### BEGIN: GENERATE PLUGIN HELPTAGS ### if [ $(type -P vim) ]; then echo -n -e "${HEADINGCOLOUR} >> Generating Plugin Help:${RESETCOLOUR}" - timeout --foreground 2m vim -c "Helptags|qa!" &> /dev/null + timeout --foreground 2m vim -u "${PWD}/vimrc" -c "Helptags|qa!" &> /dev/null if [ $? = 0 ]; then echo -e "${SUCCESSCOLOUR} SUCCESS! ${RESETCOLOUR}" else reset -I echo -e "${FAILCOLOUR} FAIL! ${RESETCOLOUR}" - error "vim -c \"Helptags|qa!\"" "Generating helpdocs for the submodules failed" + error "vim -u \"${PWD}/vimrc\" -c \"Helptags|qa!\"" "Generating helpdocs for the submodules failed" fi fi ### END: GENERATE PLUGIN HELPTAGS ###