vundle.plugin.zsh 652 B

123456789101112131415161718192021222324252627
  1. function vundle-init () {
  2. if [ ! -d ~/.vim/bundle/Vundle.vim/ ]
  3. then
  4. mkdir -p ~/.vim/bundle/Vundle.vim/
  5. fi
  6. if [ ! -d ~/.vim/bundle/Vundle.vim/.git ] && [ ! -f ~/.vim/bundle/Vundle.vim/.git ]
  7. then
  8. git clone git://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
  9. echo "\n\tRead about vim configuration for vundle at https://github.com/VundleVim/Vundle.vim\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. }