fix a problem with vim on mac terminal