From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8329 invoked by alias); 21 Jun 2016 17:35:40 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21686 Received: (qmail 9287 invoked from network); 21 Jun 2016 17:35:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=6HhJycaiDEfFSfUzrzd7GiypuNlCDXF/iSpYOaCXk2k=; b=SZ2rY9OtNMw8KiJLAEZXkokMR9r1omW1YIC8F32mpIDJPekKs92f1T6Z9hk8H3jbh8 M6wmi158VpyeRA+aJJSdg1F8JCPY/F0FuZcoHkLUdtYosd8TqTWu3QULzo7lpbHoo0pf nEOFvRriUNUJKSepPRLPLFKMy8b7aWSieLYSLu3kvSwlpxBiE8YIolXY17tf8U65gbpC 6GM0d0CzVtBM9VUgrIhIxxBY5zD6bEzMLFlJyLxl4H77kx+y90MEO8ZOrdviak22aTsO V+A1b06jEn48fImeWjDMxb+b8iFhL8aQUOXOWrz5neYb3bnooD86ox2XKQbx6kbv9+sZ tWXQ== X-Gm-Message-State: ALyK8tJAucavK2KOjeZu59QKxrcdX+z/h9X9hILLBsTUkS8uTKyvULzc6wI5mf0YwBuWhtyeRCFsw33jK4t8Qg== MIME-Version: 1.0 X-Received: by 10.25.156.11 with SMTP id f11mr5574702lfe.177.1466530535762; Tue, 21 Jun 2016 10:35:35 -0700 (PDT) In-Reply-To: References: Date: Tue, 21 Jun 2016 10:35:35 -0700 Message-ID: Subject: Re: [vi-mode] mapping (`\e') in visual mode in zsl vi-mode From: Bart Schaefer To: Filipe Silva Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 On Tue, Jun 21, 2016 at 10:09 AM, Filipe Silva wrote: > > How can I bind the key, in zle vi-mode visual mode? I want that > pressing 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.