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?
1 Answer
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.
-
Thank you, there are a lot of resources on the site. As they state there: "Note that while the vim mode tries to emulate the most useful features of vim as faithfully as possible, it does not strive to become a complete vim implementation".– RiceJan 14, 2016 at 18:03
-
@Joe, glad I could help, BTW did you look at this file? codemirror.net/keymap/vim.js It's near the 50th line or so that I found the mapping Still doesn't explain why <esc> doesn't work. Jan 14, 2016 at 20:09