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 () {
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"
}