MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / enableVim

Method enableVim

static/panes/editor.ts:490–496  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

488 }
489
490 enableVim(): void {
491 const statusElem = this.domRoot.find('.v-status')[0];
492 const vimMode = monacoVim.initVimMode(this.editor, statusElem);
493 this.vimMode = vimMode;
494 this.vimFlag.prop('class', 'btn btn-info');
495 (this.editor as any).vimInUse = true;
496 }
497
498 disableVim(): void {
499 this.vimMode.dispose();

Callers 3

constructorMethod · 0.95
registerButtonsMethod · 0.95
onSettingsChangeMethod · 0.95

Calls 1

findMethod · 0.80

Tested by

no test coverage detected