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

Function addCountBindings

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

Source from the content-addressed store, hash-verified

297 });
298
299 function addCountBindings(keyMap) {
300 // Add bindings for number keys
301 keyMap["0"] = function(cm) {
302 count.length > 0 ? pushCountDigit("0")(cm) : CodeMirror.commands.goLineStart(cm);
303 };
304 for (var i = 1; i < 10; ++i) keyMap[i] = pushCountDigit(i);
305 }
306 addCountBindings(CodeMirror.keyMap.vim);
307
308 // main num keymap

Callers 1

vim.jsFile · 0.85

Calls 1

pushCountDigitFunction · 0.85

Tested by

no test coverage detected