Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Enable `Ctrl+[` vim escape on Windows (#5914)

Trevor Manzd1c212eb8e01
diff --git a/frontend/src/core/codemirror/keymaps/vim.ts b/frontend/src/core/codemirror/keymaps/vim.ts
index 8795ce8ea5..4fb4911841 100644
--- a/frontend/src/core/codemirror/keymaps/vim.ts
+++ b/frontend/src/core/codemirror/keymaps/vim.ts
@@ -61,8 +61,9 @@ export function vimKeymapExtension(): Extension[] {
keymap.of([
{
// Ctrl-[ by default is to dedent
- // But for Vim (on Linux), it should exit insert mode when in Insert mode
+ // But for Vim (on Linux and Windows), it should exit insert mode when in Insert mode
linux: "Ctrl-[",
+ win: "Ctrl-[",
run: (ev) => {
const cm = getCM(ev);
if (!cm) {