[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bind -m vi-insert '"jj": "\e"' problem in 4.4

From: Chet Ramey
Subject: Re: bind -m vi-insert '"jj": "\e"' problem in 4.4
Date: Thu, 10 Nov 2016 11:42:07 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

On 11/10/16 4:46 AM, Clark Wang wrote:
> On Fri, Nov 4, 2016 at 6:36 PM, Clark Wang <address@hidden
> <mailto:address@hidden>> wrote:
>     For example, in vi-insert mode I input following in the command line:
>     # foo abc
>     The cursor is right after 'c'. Now if I press ESC then it'll go to
>     vi-command mode and the cursor will move to under 'c'. But if I press
>     jj the cursor would be still after 'c' and if then I press h the cursor
>     will skip 'c' and move to under 'b' . In 4.3, ESC and jj works the same
>     so there must be something changed in 4.4. Please take a look.
> The following workaround works fine for me:
>   bind -m vi-insert '"jj": "\e\e"'    # double ESC :)

There is a fix for this in the most recent commit to the devel branch
on savannah.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]