Vim: raise mode change events

There are lots of cases where it would be very useful to have the vim plugin signal when it changes modes (custom statusbars, external command system integration, etc). This is a nice simple patch to add it.