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