Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [vi-mode] mapping <esc> (`\e') in visual mode in zsl vi-mode
- X-seq: zsh-users 21687
- From: Filipe Silva <filipe.silva@xxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: [vi-mode] mapping <esc> (`\e') in visual mode in zsl vi-mode
- Date: Tue, 21 Jun 2016 14:35:53 -0300
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3iSuJOgKa3h1tImwjquO4rUN+v085KUjruGImkT5gVk=; b=qC5I+8gHefH7iG2g8mSa1ceJaNa7Ptc34mtjkfos9uTRpTwlSLz3TrKHZq0qM4mWUj zbf+Q8Gl6weAtuIL8WwTjmSJr5IN5LoAJti/0CAvxv9CRXK5RRRmbOboouR/XAU6lArm dn5iVk4+OIV7X6svU3URd4DD30NREIh/f3tp8BtpC+iI8ZHLDUz5/HWXLyYxdr2eHy+x Peyyo+JOH5W4GQ/Dq3QkA8HELJQazWAET6YsPWi5rnUagJ2sOkMmqwamdCvVmJpU04fV CyGr6pkWhabUry0GSYq0j7rulPAI8+uwyebVsT5H40G8tO8y7yF9ki052C6+MOpOZm9v EbFA==
- In-reply-to: <21131.1466530000@thecus.kiddle.eu>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAEwkUWPFp2HmAmMW_3CX_Nf4=obz9YMozeom3dSyXkPr5F1eYA@mail.gmail.com> <21131.1466530000@thecus.kiddle.eu>
I'm indeed temporarily stuck with 5.0.8 for the moment. But the workaround
solution worked nicely.
Thank you very much.
On Tue, Jun 21, 2016 at 2:26 PM, Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
> Filipe Silva wrote:
> >
> > How can I bind the <ESC> key, in zle vi-mode visual mode? I want that
> > pressing <esc> in visual mode switches to vi-normal mode.
> >
> > this does not work:
> >
> > bindkey -M visual '\e' vi-cmd-mode
>
> A deactivate-region widget was added in 5.1 so you must be using 5.0.8.
>
> If you're stuck with 5.0.8, you can define your own:
> deactivate-region() {
> REGION_ACTIVE=0
> }
> zle -N deactivate-region
> bindkey -M visual '\e' deactivate-region
>
> Otherwise, I'd recommend upgrading.
>
> Oliver
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author