Add Vim keybinds
First off, I want to say this project is awesome! Probably the best web-based language playground I have used.
I see this application is using CodeMirror, and I have also discovered the @replit/codemirror-vim package (linked to from the CodeMirror docs).
It looks like this package is pretty widely used (based on posts on the CodeMirror forum).
My request is to add Vim keybindings to the editor using this package.
Additionally, you could add custom keymaps to mirror NeoVim's default LSP keymaps.
Having the ability to customize key bindings would be a nice feature to have. But to keep the playground beginner friendly something like vim keybindings should be an opt-in feature. We currently do not have any system in place to let the user configure any kind of settings. Once we have that, we can look into integrating different sets of keybindings and let the user choose their favorite.
That makes sense.
I was thinking of either storing the keybinding preference in ~~a cookie~~ localStorage or simply not storing the preference and having the user re-select the keybinding after every refresh.