MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / leaveVimMode

Function leaveVimMode

lib/web/CodeMirror/keymap/vim.js:262–267  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

260 }
261
262 function leaveVimMode(cm) {
263 cm.setOption('disableInput', false);
264 cm.off('cursorActivity', onCursorActivity);
265 CodeMirror.off(cm.getInputField(), 'paste', getOnPasteFn(cm));
266 cm.state.vim = null;
267 }
268
269 function detachVimMap(cm, next) {
270 if (this == CodeMirror.keyMap.vim) {

Callers 1

detachVimMapFunction · 0.85

Calls 3

getOnPasteFnFunction · 0.85
setOptionMethod · 0.80
offMethod · 0.45

Tested by

no test coverage detected