Skip to content

Instantly share code, notes, and snippets.

Created September 15, 2010 05:16
Show Gist options
  • Save anonymous/580268 to your computer and use it in GitHub Desktop.
Save anonymous/580268 to your computer and use it in GitHub Desktop.
#! /bin/bash
if [[ -z $1 ]]
then
if [[ -z $VIMRUNTIME ]]
then
VIMRUNTIME=$HOME/.vim
fi
else
VIMRUNTIME="$1"
fi
echo "Installing to: $VIMRUNTIME ..."
for dir in autoload doc plugin
do
CMD="cp $dir/* $VIMRUNTIME/$dir/"
echo " $CMD"
$CMD || exit
done
echo "Updating help tags ..."
cd $VIMRUNTIME && vim -c 'helptags . | :q'
echo "Done: plugin installed".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment