[vim] Add custom keypress/keydown handlers.
[vim] Handle keys as strings instead of arrays.
[vim] Compact defaultKeyMap to 1 line per key
[vim] Add origin to handleKey.

Move keybuffer clearing code out of the matching code
[vim] Don't handle meta-key on mac
[vim] Allow generic insert mode keymaps
[vim] Style fixes for key handling changes