From 9ac0ba658ef81098b52a399b2226892270d67a04 Mon Sep 17 00:00:00 2001 From: steve0hh Date: Tue, 12 Aug 2014 21:37:17 +0800 Subject: [PATCH] add new vundle commands and clean up --- plugins/vundle/vundle.plugin.zsh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/plugins/vundle/vundle.plugin.zsh b/plugins/vundle/vundle.plugin.zsh index 830774fe3..b0b13be42 100644 --- a/plugins/vundle/vundle.plugin.zsh +++ b/plugins/vundle/vundle.plugin.zsh @@ -1,27 +1,25 @@ function vundle-init () { - if [ ! -d ~/.vim/bundle/vundle/ ] + if [ ! -d ~/.vim/bundle/Vundle.vim/ ] then - mkdir -p ~/.vim/bundle/vundle/ - fi - - if [ ! -d ~/.vim/bundle/vundle/.git ] && [ ! -f ~/.vim/bundle/vundle/.git ] - then - git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle + git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim echo "\n\tRead about vim configuration for vundle at https://github.com/gmarik/vundle\n" fi } function vundle () { vundle-init - vim -c "execute \"BundleInstall\" | q | q" + vim +PluginInstall +qall + echo "\n\tVundle plugins installed!\n" } function vundle-update () { vundle-init - vim -c "execute \"BundleInstall!\" | q | q" + vim +PluginUpdate +qall + echo "\n\tVundle plugins updated!\n" } function vundle-clean () { vundle-init - vim -c "execute \"BundleClean!\" | q | q" + vim +PluginClean +qall + echo "\n\tUnused vundle plugins has been removed!\n" }