#!/bin/bash
BASE="/etc/vim"
URL="https://download.al1al7.de/vim/vimconfig.sh"
UPDATESCRIPT="$BASE/update.sh"

cd $BASE || exit
wget $URL -O $UPDATESCRIPT
chmod +x $UPDATESCRIPT
sh $UPDATESCRIPT
rm $UPDATESCRIPT

#cleanup deprecated files
rm /etc/vim/vim_config_updater.sh

exit 0

