2011-06-29 07:26:42 +00:00
|
|
|
function vundle-init () {
|
2015-08-21 06:28:03 +00:00
|
|
|
if [ ! -d ~/.vim/bundle/Vundle.vim/ ]
|
2011-06-29 07:26:42 +00:00
|
|
|
then
|
2015-08-21 06:28:03 +00:00
|
|
|
mkdir -p ~/.vim/bundle/Vundle.vim/
|
2011-06-29 07:26:42 +00:00
|
|
|
fi
|
|
|
|
|
2015-08-21 06:28:03 +00:00
|
|
|
if [ ! -d ~/.vim/bundle/Vundle.vim/.git ] && [ ! -f ~/.vim/bundle/Vundle.vim/.git ]
|
2011-06-29 07:26:42 +00:00
|
|
|
then
|
2015-08-21 06:28:03 +00: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 07:26:42 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
function vundle () {
|
|
|
|
vundle-init
|
2015-06-26 13:47:00 +00:00
|
|
|
vim -c "execute \"PluginInstall\" | qa"
|
2011-06-29 07:26:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function vundle-update () {
|
|
|
|
vundle-init
|
2015-06-26 13:47:00 +00:00
|
|
|
vim -c "execute \"PluginInstall!\" | qa"
|
2011-06-29 07:26:42 +00:00
|
|
|
}
|
2013-04-11 20:56:22 +00:00
|
|
|
|
|
|
|
function vundle-clean () {
|
|
|
|
vundle-init
|
2015-06-26 13:47:00 +00:00
|
|
|
vim -c "execute \"PluginClean!\" | qa"
|
2013-04-11 20:56:22 +00:00
|
|
|
}
|