(cm, prev)
| 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) { |
nothing calls this directly
no test coverage detected