some fixes for console vim on Mac