[vim] Disable insert mode if document is readonly

https://github.com/marijnh/CodeMirror/issues/1673