MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / enterInsertMode

Function enterInsertMode

mini-code-edit/cm/keymap/vim.js:204–209  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

202 }
203
204 function enterInsertMode(cm) {
205 // enter insert mode: switch mode and cursor
206 if (!cm) console.log("call enterInsertMode with 'cm' as an argument");
207 popCount();
208 cm.setOption("keyMap", "vim-insert");
209 }
210
211 // main keymap
212 var map = CodeMirror.keyMap.vim = {

Callers 2

vim.jsFile · 0.85
setupPrefixBindingForKeyFunction · 0.85

Calls 1

popCountFunction · 0.85

Tested by

no test coverage detected