Fix #1

I met the same issue with #1. So I try to fix it . The patch also make the plugin to support mac terminal vim