Skip to content

Instantly share code, notes, and snippets.

@jeetsukumaran
Forked from anonymous/vim-plugin-installer.sh
Created September 15, 2010 05:30
Show Gist options
  • Save jeetsukumaran/580276 to your computer and use it in GitHub Desktop.
Save jeetsukumaran/580276 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".
@jeetsukumaran
Copy link
Author

Thanks. Done!

@gmarik
Copy link

gmarik commented Nov 6, 2010

Hey!
You might like https://github.com/gmarik/vundle ! )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment