I am trying to remap a keybind for the <esc> sequence within CodeMirror's vim editor in TW5. The vim editor does support the use of the ex command
however this is not a global approach. As outlined in
https://github.com/codemirror/CodeMirror/issues/2840, it would seem I need to call the js function
CodeMirror.Vim.map('kj', '<Esc>', 'insert')
I have tried including the above call within $:/plugins/tiddlywiki/codemirror/keymap/vim.js but to no avail. However, I may not be implementing the call correctly.
Is there a method to run the necessary script whenever vim.js is called?
CodeMirror.Vim.map('kj', '<Esc>', 'insert')
after
near the very bottom of vim.js.
Thanks for any help!