-
-
Save jeetsukumaran/580276 to your computer and use it in GitHub Desktop.
Script to install Vim plugin from its development source
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 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
This is handy. You might want to add "ftdetect" and "indent" to the list of directories, for this to work for all plugins ...
Thx.