[Vimperator] [RFC] How to handle text fields

Viktor Kojouharov vkojouharov at gmail.com
Thu Apr 19 08:30:46 PDT 2007

first, because this is related:
I think the 'I' binding is not chosen properly, since it does
something specific to vimperator, but vim does something else with it.
That's why I propose to change 'I' to '^b', so that we can go in
'Browser' mode. What does the list think?

And for the current issue:
<ESC> should always return to normal mode. However, I don't see a
reason to have to have a separate key to switch between the insert
mode and 'normal mode of text editing'. Most importantly, why is there
a 'normal mode of text editing' in the first place? It should act like
vim, and vim is mostly a giant textarea and command line, and it's
normal mode is for both of those. So vimperator's normal mode should
work like that too. If the user has focused a textarea, keybindings
should act on it. pressing ':' would take the user to the command
line. various other commands would be interpreted as in vim.

On 4/19/07, Martin Stubenschrott <stubenschrott at gmx.net> wrote:
> On Thu, Apr 19, 2007 at 09:32:15AM -0400, Bart Trojanowski wrote:
> > On a somewhat related topic.  It might be a good idea to borrow from the
> > "It's all text" extension and have a shortcut to launch vim to do edits
> > on arbitrary entry field.
> >
> > https://addons.mozilla.org/en-US/firefox/addon/4125
> Would be nice indeed, added to TODO, but not on a high priority, first
> will come our own text field keybindings, but I need your input on this
> thing:
> How to handle text fields best. I thought about this:
> 1. When a text field is focus (by mouse, hints, tab or whatever), go to
> normal mode (hjkl moves cursor instead of typing) (maybe with an option
> 'startinsert' to start in insert mode).
> 2. pressing 'i' will go to insert mode and 'v' to visual mode
> but now the 'problem':
> How to go back to normal mode?
> I thought about <Esc> but this would break vims idea that you ALWAYS
> "get out" of anything with one esc. And with this idea, you needed to
> press <Esc> twice to get to the normal command mode of vim.
> The other idea would be to use some ctrl- prefixed key to switch from
> insert mode back to the normal mode of text editing.
> Comments?
> PS: This is only my ideas, don't expect them to work good soon, as they
> are really much work to get right.
> _______________________________________________
> Vimperator mailing list
> Vimperator at mozdev.mozdev.org
> http://www.mozdev.org/mailman/listinfo/vimperator

More information about the Vimperator mailing list