Add installvimplugin script

This commit is contained in:
Rob Watson 2021-04-05 09:59:54 +02:00
parent 0f7dd2451e
commit 1dfe2888ff
1 changed files with 14 additions and 0 deletions

14
script/installvimplugin Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
#
# Install a vim plugin from Git (into start directory for now)
set -e
if [ -z "$1" ]; then
echo "Usage: installvimplugin <git url>"
exit 1
fi
basename=$(basename "$1" .git)
cd "$HOME/.vim/pack/git-plugins/start"
git clone https://github.com/dense-analysis/ale.git "$basename"