Search code examples
firefoxvimmozillafirefox-developer-tools

Exit vim insert mode in Mozilla Firefox Style Editor


Inside of the style editor for Mozilla Firefox web dev, I have my Keybindings set to 'Vim' (preferred). The problem is inside of the Style Editor I cannot exit insert mode; I usually would press escape to do this in any Vim editor, however in Mozilla this is bound to the shortcut of 'open console'. How can I either exit insert mode or change the key bindings in Firefox?


Solution

  • By default, you can use ctrlc to switch to normal mode and i to go to insert mode.

    I'm not sure how to change the keybindings but here are some things to get you started.

    The Editor component is a thin wrapper around the CodeMirror open source editor.

    vim bindings demo
    vim api in the manual