hopefully fixed mac vim startup errors
removed redundant vim defined function