It would be nice to have the option of enabling VIM bindings in the CodeMirror editor.
Since I want this so much, I have created a script that I automatically run on each gomix.com page load that does just that.
Here it is in case someone else wants it:
Yes, one way is to paste the script in the console.
You can, however, run it with an extension like TamperMonkey. I use this extension I’ve built for Chrome, which is essentially a super simplified TamperMonkey.
I tried turning this into a TamperMonkey script, but I’m getting a lot of this error:
EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'
@aninternetof yeah, Tampermonkey has a way to override Content Security Policy set in HTTP headers, but not one set in meta tags (which is what Glitch does). But if HTTP headers are fetched and enforced before the page gets loaded, meta CSP tags are only applied after they’re parsed. Tampermonkey has a settings tab in the userscript editor, you can go there and set “run at” option to “document-start”. This way Tampermonkey will run the script before CSP tags are parsed, so they won’t interfere.
If shameless self-advertisement is ok, I made this into a userscript and posted it here along with a few others, mentioning the workaround there too!