]> src.twobees.de Git - dotfiles.git/blob - stow/vim/.vim/init.sh
initial
[dotfiles.git] / stow / vim / .vim / init.sh
1 #!/usr/bin/env bash
2
3 cd $HOME/.vim &>/dev/null
4 if [ $? -ne "0" ];then
5     cd $HOME/vimfiles &>/dev/null
6     if [ $? -ne "0" ];then
7         echo "could not change to vim configuration dir";
8         exit 1;
9     fi
10 fi
11 echo "vim configuration dir: " `pwd`
12
13 if [ -d bundle/Vundle.vim ];then
14     cd bundle/Vundle.vim;
15     echo "Update Vundle:"
16     git pull
17     cd -
18 else
19     git clone https://github.com/VundleVim/Vundle.vim.git bundle/Vundle.vim
20 fi
21 vim +PluginClean! +PluginInstall! +qall
22 stty sane