Add vim keys to the solve page's editor
Test and publish the site / test (push) Successful in 51s
Test and publish the site / publish (push) Successful in 1m16s

A Vim checkbox in the toolbar turns on @replit/codemirror-vim, off by
default and remembered in this browser like the split. A status line
under the editor shows the mode and the command being typed, and :w
saves as Save does. Run, Submit and Save keep their Ctrl keys in every
mode, since the page's keymap is at the highest precedence.

The vim extension sits in a Compartment, so turning it on or off keeps
the text and its history; the states kept for the other languages are
brought up to date when they are swapped back in.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-20 14:00:29 +01:00
co-authored by Claude Opus 5.5
parent 20d2e05798
commit 2ea9980d58
5 changed files with 93 additions and 1 deletions
+1
View File
@@ -21,6 +21,7 @@
"@codemirror/state": "^6.7.6",
"@codemirror/view": "^6.43.13",
"@lezer/highlight": "^1.2.5",
"@replit/codemirror-vim": "^6.4.0",
"@vscode/markdown-it-katex": "^1.1.2",
"codemirror": "^6.0.2",
"dompurify": "^3.4.17",