vundle.plugin.zsh 504 B

1234567891011121314151617181920212223
  1. function vundle-init () {
  2. if [ ! -d ~/.vim/bundle/vundle/ ]
  3. then
  4. mkdir -p ~/.vim/bundle/vundle/
  5. fi
  6. if [ ! -d ~/.vim/bundle/vundle/.git/ ]
  7. then
  8. git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
  9. echo "\n\tRead about vim configuration for vundle at https://github.com/gmarik/vundle\n"
  10. fi
  11. }
  12. function vundle () {
  13. vundle-init
  14. vim -c "execute \"BundleInstall\" | q | q"
  15. }
  16. function vundle-update () {
  17. vundle-init
  18. vim -c "execute \"BundleInstall!\" | q | q"
  19. }