Added the -p parameter to mkdir to ensure the .vim directory is created.