Vundle, the plug-in manager for Vim
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
828 B

13 years ago
13 years ago
13 years ago
13 years ago
  1. setup() {
  2. echo -en 'disabled'
  3. # mkdir -p $HOME/.vim/autoload/ &&
  4. # curl http://github.com/gmarik/vundle/raw/master/autoload/vundle.vim > $HOME/.vim/autoload/vundle.vim
  5. # return$([ -s $HOME/.vim/autoload/vundle.vim ] && rm -f ~/.vim/autoload/vundle.vim )
  6. return 1
  7. }
  8. install() {
  9. vim -e -c "BundleInstall" -c "q"
  10. return $([ -d $HOME/.vim/bundle ] && [ "$(ls -1 -d ~/.vim/bundle/*|wc -l)" = "$(grep ^Bundle ~/.vim/vimrc|wc -l)" ] )
  11. }
  12. docs() {
  13. _tags() { find ~/.vim/bundle/**/doc -name 'tags'; }
  14. _tags | xargs rm
  15. vim -e -c 'BundleDocs' -c 'q'
  16. return $([ "0" != $(_tags | wc -l) ])
  17. }
  18. t() {
  19. printf "%-15s: " $1
  20. $1 1>> 'test.log' 2>&1 && echo 'ok' || echo 'fail'
  21. }
  22. test_all() {
  23. : > 'test.log'
  24. t setup
  25. t install
  26. t docs
  27. }
  28. doc() {
  29. maruku --html README.md ; open README.html
  30. }
  31. ${1:-test_all}