Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 454
Rice Avatar asked Jan 13 '16 18:01

Rice


People also ask

How do I turn off insert mode in Vim?

Type i to switch into insert mode so that you can start editing the file. Enter or modify the text with your file. Once you're done, press the escape key Esc to get out of insert mode and back to command mode.

What key do you hit to exit out of insert mode in Vim?

You should not be able to enter text. To exit from 'insert' mode, hit ESC (the escape key). If you want to force a quit (i.e. quit without saving) type: :q!

How to exit vim most asked question?

You should type :quit and then hit the [ENTER] key. It's really easy to learn the basics of vim, and it's built right into your system.


1 Answers

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

like image 194
sudo bangbang Avatar answered Nov 15 '22 09:11

sudo bangbang