fix for non-gui vim and older git