diff --git a/install.sh b/install.sh index 2feb43d..e336878 100755 --- a/install.sh +++ b/install.sh @@ -34,8 +34,17 @@ vim_extension () { user_install () { echo "VIM Conf" + ln -sf $(pwd)/.vimrc /home/$(whoami)/ + + if [ -d "$HOME/.vim" ] ; then + echo -e "\tExisting .vim directory detected..." + mv "$HOME/.vim" "$HOME/.vim.bak" + read -p "...." + fi + ln -sf $(pwd)/.vim/ /home/$(whoami)/ + vim_extension