vundle.plugin.zsh 619 B

123456789101112131415161718192021222324252627
  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 ] && [ ! -f ~/.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 \"PluginInstall\" | qa"
  15. }
  16. function vundle-update () {
  17. vundle-init
  18. vim -c "execute \"PluginInstall!\" | qa"
  19. }
  20. function vundle-clean () {
  21. vundle-init
  22. vim -c "execute \"PluginClean!\" | qa"
  23. }