|
53 | 53 | { keys: '<Down>', type: 'keyToKey', toKeys: 'j' }, |
54 | 54 | { keys: '<Space>', type: 'keyToKey', toKeys: 'l' }, |
55 | 55 | { keys: '<BS>', type: 'keyToKey', toKeys: 'h', context: 'normal'}, |
| 56 | + { keys: '<BS>', type: 'motion', motion: 'moveByCharacters', motionArgs: { forward: false }, context: 'insert'}, |
56 | 57 | { keys: '<C-Space>', type: 'keyToKey', toKeys: 'W' }, |
57 | 58 | { keys: '<C-BS>', type: 'keyToKey', toKeys: 'B', context: 'normal' }, |
58 | 59 | { keys: '<S-Space>', type: 'keyToKey', toKeys: 'w' }, |
|
4771 | 4772 | CodeMirror.keyMap['vim-insert'] = { |
4772 | 4773 | // TODO: override navigation keys so that Esc will cancel automatic |
4773 | 4774 | // indentation from o, O, i_<CR> |
4774 | | - 'Ctrl-N': 'autocomplete', |
4775 | | - 'Ctrl-P': 'autocomplete', |
4776 | | - 'Enter': function(cm) { |
4777 | | - var fn = CodeMirror.commands.newlineAndIndentContinueComment || |
4778 | | - CodeMirror.commands.newlineAndIndent; |
4779 | | - fn(cm); |
4780 | | - }, |
4781 | 4775 | fallthrough: ['default'], |
4782 | 4776 | attach: attachVimMap, |
4783 | 4777 | detach: detachVimMap, |
4784 | 4778 | call: cmKey |
4785 | 4779 | }; |
4786 | 4780 |
|
4787 | 4781 | CodeMirror.keyMap['vim-replace'] = { |
4788 | | - 'Backspace': 'goCharLeft', |
4789 | 4782 | fallthrough: ['vim-insert'], |
4790 | 4783 | attach: attachVimMap, |
4791 | 4784 | detach: detachVimMap, |
|
0 commit comments