On Sun, Oct 30, 2011 at 11:10:36PM +0100, Hannes Schüller wrote:
> This replaces the current Javascript-based logic to automatically
> activate INSERT when the user clicks on a form element (hence the
> commented lines which will finally disappear completely). Thanks to
> porti!
>
> Hannes
This works pretty fine. I like to decide when to switch to insert mode. Until
today, I spent some time on pages that have some search form that caused the
switch to insert mode automatically, so that my prefered movement commands
like CTRL-D didn't work until I switched back to normal mode via ESC.
At the moment I have disables scripts and wonder why the input-focus did not
work. The hinting is also done via javascript and work also if scripts=false.
If I use google to search, vimprobable keeps in insert mode after performing
the search, so I have to hit ESC before hinting some of the result links. With
enabled javascript is was no problem without the patch.
Is there a way to combine both features, activate insert mode only on request
(click, hint) and to leave insertmode if form field leaves the focus, also if
javascript is disabled?
Daniel
|