From e5395b1a4f10db6c7b25f14c8e17fa4c0d089e3e Mon Sep 17 00:00:00 2001 From: natsmith9 Date: Mon, 29 May 2017 20:53:23 +0000 Subject: [PATCH] Added logic to create .vim folder if it doesn't exist. --- profile_setup.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/profile_setup.sh b/profile_setup.sh index 7b1f3a3..b5bb62f 100644 --- a/profile_setup.sh +++ b/profile_setup.sh @@ -35,6 +35,14 @@ for file in $files; do ln -s $dir/$file ~/.$file done +# check to see if .vim folder exists. if not, make directory + +if [ ! -d "~/.vim" ]; then + echo "Making .vim directory." + mkdir ~/.vim + echo "...done" +fi + # make vim autoload and bundle directories, install pathogen and clone Vim Sensible and Solarized Vim colors echo "Making Vim autoload and bundle directories" mkdir ~/.vim/autoload ~/.vim/bundle