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