Use script functions instead of resetting globals
Use script functions instead of resetting globals

Instead of checking to see if a global exists and then setting it, I
feel like it would be nicer to use internal functions to achieve the
same result.

gfontenot/vim-xcodebuild,gfontenot/vim-xcode,interstateone/vim-xcodebuild