add new vundle commands and clean up

This commit is contained in:
steve0hh 2014-08-12 21:37:17 +08:00
commit 9ac0ba658e

View file

@ -1,27 +1,25 @@
function vundle-init () { function vundle-init () {
if [ ! -d ~/.vim/bundle/vundle/ ] if [ ! -d ~/.vim/bundle/Vundle.vim/ ]
then then
mkdir -p ~/.vim/bundle/vundle/ git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
fi
if [ ! -d ~/.vim/bundle/vundle/.git ] && [ ! -f ~/.vim/bundle/vundle/.git ]
then
git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
echo "\n\tRead about vim configuration for vundle at https://github.com/gmarik/vundle\n" echo "\n\tRead about vim configuration for vundle at https://github.com/gmarik/vundle\n"
fi fi
} }
function vundle () { function vundle () {
vundle-init vundle-init
vim -c "execute \"BundleInstall\" | q | q" vim +PluginInstall +qall
echo "\n\tVundle plugins installed!\n"
} }
function vundle-update () { function vundle-update () {
vundle-init vundle-init
vim -c "execute \"BundleInstall!\" | q | q" vim +PluginUpdate +qall
echo "\n\tVundle plugins updated!\n"
} }
function vundle-clean () { function vundle-clean () {
vundle-init vundle-init
vim -c "execute \"BundleClean!\" | q | q" vim +PluginClean +qall
echo "\n\tUnused vundle plugins has been removed!\n"
} }