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 21686
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Filipe Silva <filipe.silva@xxxxxxxxx>
- Subject: Re: [vi-mode] mapping <esc> (`\e') in visual mode in zsl vi-mode
- Date: Tue, 21 Jun 2016 10:35:35 -0700
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=6HhJycaiDEfFSfUzrzd7GiypuNlCDXF/iSpYOaCXk2k=; b=0nQz4SMFvkHrMxWLEDEW6Wgyqhck3ayjnOv4lNtEj6CmzjWpWrEoiWXhndHCroSsEq xu2Z8GME3ZImg+BTMaQ+QzkPLo9Gvht7DmJ4BnsCISsW+QHwmm9xxuSFgVyGNZLWg2aA zbBNNDAyUiCZoEw330kMsGnqn6ik3OjgcB+iW2gWi1OKIreMnXIfCgXikzAHtR3YJaLQ cHAZRuAsdB8I7M5kknFLDNmWEujitxVUoTpzBgOJi079PUPC4j/HF7oWi/dQXCYHitkU 7z0mNjC3sXomiXyhjkhBtBolDbSQdVQETh8xjMlGc29tVDzPagaqHa9X1mBq+lQpmA0L f4mQ==
- In-reply-to: <CAEwkUWPFp2HmAmMW_3CX_Nf4=obz9YMozeom3dSyXkPr5F1eYA@mail.gmail.com>
- 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>
On Tue, Jun 21, 2016 at 10:09 AM, Filipe Silva <filipe.silva@xxxxxxxxx> 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.
Back in February, I wrote:
>
> As presently
> implemented, visual mode is a combination of a couple of different
> states that can each be changed independently; the determination of
> whether this "mode" is in effect is not made until the last instant
> before ZLE waits for the next keystroke, and is forgotten as soon as
> the keystroke has been consumed. The keymap isn't even in place long
> enough for the corresponding widget to see it; it's indistinguishable
> from vicmd mode.
The consequence of this is that the only way to "end visual mode" is
(as Oliver just pointed out) to deactivate the region.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author