[vim] Fix failing tests in ie8

Fixes for https://github.com/marijnh/CodeMirror/issues/1987