[vim] Use keymap binding instead of event handlers

https://github.com/codemirror/CodeMirror/issues/2915