Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

Fix #19

Sean Boult12817443a548
diff --git a/src/components/challenge/editor/vimMode.tsx b/src/components/challenge/editor/vimMode.tsx
index 317a3a14..039917f7 100644
--- a/src/components/challenge/editor/vimMode.tsx
+++ b/src/components/challenge/editor/vimMode.tsx
@@ -6,7 +6,7 @@ const STATUS_BAR_ID = 'vim-status-bar';
export const VimStatusBar = () => {
const { settings } = useEditorSettingsStore();
- if (settings.bindings === 'vim') {
+ if (settings.bindings === 'vim' && globalThis.editor) {
activateVimMode(globalThis.editor);
} else {
deactivateVimMode();