add utility function for Mac .vimrc