1aa577a8ef
- bundlerc support deprecated
25 lines
722 B
Bash
Executable File
25 lines
722 B
Bash
Executable File
setup() {
|
|
mkdir -p $HOME/.vim/autoload/ &&
|
|
curl http://github.com/gmarik/vundle/raw/master/autoload/vundle.vim > $HOME/.vim/autoload/vundle.vim
|
|
|
|
echo -en "Setup: " ; [ -s $HOME/.vim/autoload/vundle.vim ] && echo "ok" || echo "fail"
|
|
rm ~/.vim/autoload/vundle.vim
|
|
}
|
|
|
|
install() {
|
|
vim -e -c "BundleInstall" -c "q"
|
|
# echo -en "Setup: " ; [ -s $HOME/.vim/autoload/vundle.vim ] && echo "ok" || echo "fail"
|
|
echo -en 'Install:'; [ -d $HOME/.vim/bundle ] && [ "$(ls -1 -d ~/.vim/bundle/*|wc -l)" = "$(grep ^Bundle ~/.vim/vimrc|wc -l)" ] && echo 'ok' || echo 'fail'
|
|
}
|
|
|
|
# $ source vundle_test.sh; test
|
|
test() {
|
|
setup
|
|
install
|
|
}
|
|
|
|
# $ source vundle_test.sh; doc
|
|
doc() {
|
|
maruku --html README.md ; open README.html
|
|
}
|