MCPcopy
hub / github.com/witheve/Eve / attachVimMap

Function attachVimMap

src/codemirror.js:9598–9604  ·  view source on GitHub ↗
(cm, prev)

Source from the content-addressed store, hash-verified

9596 leaveVimMode(cm, false);
9597 }
9598 function attachVimMap(cm, prev) {
9599 if (this == CodeMirror.keyMap.vim)
9600 CodeMirror.addClass(cm.getWrapperElement(), "cm-fat-cursor");
9601
9602 if (!prev || prev.attach != attachVimMap)
9603 enterVimMode(cm);
9604 }
9605
9606 // Deprecated, simply setting the keymap works again.
9607 CodeMirror.defineOption('vimMode', false, function(cm, val, prev) {

Callers

nothing calls this directly

Calls 2

enterVimModeFunction · 0.85
getWrapperElementMethod · 0.80

Tested by

no test coverage detected