2014-11-20 13:41:01 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2014-11-26 18:47:12 +00:00
|
|
|
# Change to directory of this script.
|
|
|
|
cd "${0%/*}"
|
|
|
|
|
2014-11-22 08:37:36 +00:00
|
|
|
# Look for existing vader installation.
|
|
|
|
vader=( ${HOME}/.vim/*bundle*/vader*/plugin/vader.vim )
|
|
|
|
if [ -f ${vader[0]} ]; then
|
|
|
|
# Remove "plugin/vader.vim" suffix.
|
|
|
|
vader=${vader[0]%/*/*}
|
|
|
|
fi
|
2014-11-20 15:50:38 +00:00
|
|
|
|
|
|
|
if [ -d $vader ]; then
|
2014-12-12 18:56:40 +00:00
|
|
|
[[ ! -L vader.vim ]] && ln -s $vader vader.vim
|
2014-11-20 15:50:38 +00:00
|
|
|
else
|
|
|
|
git clone https://github.com/junegunn/vader.vim.git
|
|
|
|
fi
|
|
|
|
|
2014-12-17 01:26:23 +00:00
|
|
|
# Provide viminfo during tests, remove it on exit.
|
|
|
|
cp viminfo viminfo.tmp
|
|
|
|
trap "{ rm viminfo.tmp; }" EXIT
|
|
|
|
|
2018-04-09 15:21:22 +00:00
|
|
|
TERM=ansi HOME=/dev/null vim -XNu vimrc -i viminfo.tmp -c 'Vader! feature/*.vader'
|