diff --git a/frontend/src/components/editor/Editor.tsx b/frontend/src/components/editor/Editor.tsx index 8c159ca3..a7b5fd1e 100644 --- a/frontend/src/components/editor/Editor.tsx +++ b/frontend/src/components/editor/Editor.tsx @@ -1,7 +1,7 @@ import { markdown } from "@codemirror/lang-markdown"; import { EditorState } from "@codemirror/state"; import { keymap } from "@codemirror/view"; -import { Vim, vim } from "@replit/codemirror-vim"; +import { vim } from "@replit/codemirror-vim"; import { basicSetup } from "@uiw/codemirror-extensions-basic-setup"; import { xcodeDark, xcodeLight } from "@uiw/codemirror-theme-xcode"; import { EditorView } from "codemirror"; @@ -94,9 +94,6 @@ function Editor(props: EditorProps) { ], }); - // Vim key mapping: Map 'jj' to '' in insert mode - Vim.map("jj", "", "insert"); - const view = new EditorView({ state, parent: element }); dispatch(setCmView(view));