Created
September 15, 2010 05:16
-
-
Save anonymous/580268 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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