Skip to content

Instantly share code, notes, and snippets.

@mt3
Forked from jeetsukumaran/vim-plugin-installer.sh
Created November 9, 2012 10:39
Show Gist options
  • Save mt3/4045082 to your computer and use it in GitHub Desktop.
Save mt3/4045082 to your computer and use it in GitHub Desktop.
Script to install Vim plugin from its development source
#! /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 after autoload colors compiler doc ftdetect ftplugin indent plugin syntax
do
if [[ -d $dir ]]
then
CMD="cp -r $dir/* $VIMRUNTIME/$dir/"
echo " $CMD"
$CMD || exit
fi
done
echo "Updating help tags ..."
cd $VIMRUNTIME/doc && 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