bug-bash
[Top][All Lists]
Advanced

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

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


From: Clark Wang
Subject: Re: bind -m vi-insert '"jj": "\e"' problem in 4.4
Date: Thu, 10 Nov 2016 17:46:35 +0800

On Fri, Nov 4, 2016 at 6:36 PM, Clark Wang <clarkw@vmware.com> 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 :)

-clark

reply via email to

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