2011-06-29 15:26:42 +08:00
|
|
|
function vundle-init () {
|
2015-08-21 14:28:03 +08:00
|
|
|
if [ ! -d ~/.vim/bundle/Vundle.vim/ ]
|
2011-06-29 15:26:42 +08:00
|
|
|
then
|
2015-08-21 14:28:03 +08:00
|
|
|
mkdir -p ~/.vim/bundle/Vundle.vim/
|
2011-06-29 15:26:42 +08:00
|
|
|
fi
|
|
|
|
|
2015-08-21 14:28:03 +08:00
|
|
|
if [ ! -d ~/.vim/bundle/Vundle.vim/.git ] && [ ! -f ~/.vim/bundle/Vundle.vim/.git ]
|
2011-06-29 15:26:42 +08:00
|
|
|
then
|
2015-08-21 14:28:03 +08:00
|
|
|
git clone git://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
|
|
|
echo "\n\tRead about vim configuration for vundle at https://github.com/VundleVim/Vundle.vim\n"
|
2011-06-29 15:26:42 +08:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
function vundle () {
|
|
|
|
vundle-init
|
2015-06-26 21:47:00 +08:00
|
|
|
vim -c "execute \"PluginInstall\" | qa"
|
2011-06-29 15:26:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function vundle-update () {
|
|
|
|
vundle-init
|
2015-06-26 21:47:00 +08:00
|
|
|
vim -c "execute \"PluginInstall!\" | qa"
|
2011-06-29 15:26:42 +08:00
|
|
|
}
|
2013-04-12 04:56:22 +08:00
|
|
|
|
|
|
|
function vundle-clean () {
|
|
|
|
vundle-init
|
2015-06-26 21:47:00 +08:00
|
|
|
vim -c "execute \"PluginClean!\" | qa"
|
2013-04-12 04:56:22 +08:00
|
|
|
}
|