Fixed errors in .vimrc

Fixed a few problems where the hostname for ipa wasn't being parse
correctly. So to fix this issue, I have a variable check it now.