#!/bin/bash

cRES='\033[0m'
cGRE='\033[00;32m'
#cGRA='\033[00;37m'
cGRA='\033[00;90m'
cYEL='\033[00;33m'
cPUR='\033[00;35m'
cBOL='\033[00;1m'
cRED='\033[00;31m'
cNIL=""

echo -e "${cGRA}"
echo -e "#${cNIL}############${cNIL}############################${cNIL}######################################"
echo -e "#${cNIL}            ${cNIL}                            ${cNIL}                                     #"
echo -e "#${cGRE}   ● ○ ○ ○ ●${cGRA}                            ${cGRA}                                     #"
echo -e "#${cGRE}   ● ● ○ ● ●${cBOL}   Mike Ochmann             ${cGRA}                                     #"
echo -e "#${cGRE}   ● ○ ● ○ ●${cYEL}   https://mike-ochmann.de  ${cGRA}                                     #"
echo -e "#${cGRE}   ● ○ ○ ○ ●${cGRA}                            ${cGRA}                                     #"
echo -e "#${cGRE}   ● ○ ○ ○ ●${cGRA}                            ${cGRA}                                     #"
echo -e "#${cNIL}            ${cNIL}                            ${cNIL}                                     #"
echo -e "#${cPUR}   \`yadm\` after installation script${cGRA}   ${cNIL}                                       #"
echo -e "#${cGRA}   version 1.0.2${cNIL}                        ${cNIL}                                     #"
echo -e "#${cNIL}            ${cNIL}                            ${cNIL}                                     #"
echo -e "#${cNIL}############${cNIL}############################${cNIL}######################################"
echo -e "${cRES}"

if [ ! -d ~/.vim/bundle/Vundle.vim ]
then
    echo -e "\tInstalling 'Vundle'"
    git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
else
    echo -e "\t'Vundle' is already installed, skipping..."
fi

echo -e "\tInstalling vim Plugins..."

vim +PluginInstall +qall

if [ $? -eq 0 ]
	then
	echo -e "[${cGRE}DONE${cRES}]"
else
	echo -e "[${cRED}ERROR${cRES}]"
fi
echo