Refactoring to aloow Bundle right in .vimrc

- thanks http://github.com/bronson for idea
This commit is contained in:
gmarik
2010-10-30 19:42:07 -05:00
parent c64bc07b18
commit f27d54f876
2 changed files with 30 additions and 25 deletions

View File

@@ -3,10 +3,11 @@ setup() {
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 "call vundle#rc()" -c "BundleInstall" -c "q"
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/bundlerc|wc -l)" ] && echo 'ok' || echo 'fail'
}