From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27471 invoked by alias); 16 Jun 2016 20:18:08 -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: 21678 Received: (qmail 147 invoked from network); 16 Jun 2016 20:18:07 -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=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=zSy9eGs8CGXnZDExwLOXdGLGTxko1nSsxSjry5gYYs0=; b=NrkcmOq+XVpQh0OI3Ebw7geAbk9W1QDkpMUBjjiyWRMQcb0swxdaiF2tge9cpnBfmi Bq2wQbTTr2IRdPMFox2VsYRIvtJm0oPZJ0IGinO3/nHXtinYwzk1Dmh9jWwvJueA+npv 5l6tTQf+cNRqzl73h7Ntm/ieIUXvd9ut78xBpSX1QDuxWFGQ7zz46rdXCSRdyAJ1xYfr 2s2wMt38xYM3zofZJ9gdAg1Fiw0LJIMSeP5o23GrQ8R0kRujNGRHWS5pmZEaNhtAUhs9 nX/O5caot9wvC8YKb5HsJo52g02E3KjPT4TI6Jag6vKbqCjE+J3A3UKPYEd0z+5eOedF 6IoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=zSy9eGs8CGXnZDExwLOXdGLGTxko1nSsxSjry5gYYs0=; b=NtEPRiZyIyU8Vy+eHOTch5EQFBXMmZ2xU2SryiJLngTOl8SrlABaKhlp7O6v58LoU2 EeXk94XZW/YQD2k5eyi2Ld4cebIzFt4jZcfhTHAV46fMbJWh+uo3bIyszVueVNE0YplW IhImPanOJXTxXHQ6+jLbDDmx2AIZ9e5Y7YW6cVzj/rJGM4OqxAwg2Tu9mEltayqKND9v N6PT/SIdQVioykl2HMtRyVMIWuzmmyxtNr60BIXEYG2uVxynFXu93cu4fBEvCBv5+6h9 Tu+uBX7Vg0j0g5/EMkpBnEJKtMD8WH/u4crMevoZqRsRuE/cLtEMh+sZuhDfeGGPInew 6WPg== X-Gm-Message-State: ALyK8tIftLP1KvH9dN1+aCymZPt0XL19SuDFI6td1uPSE05QawWWwEVkp9FtHwC8yiDuEQ== X-Received: by 10.66.164.195 with SMTP id ys3mr7120345pab.97.1466108284016; Thu, 16 Jun 2016 13:18:04 -0700 (PDT) From: Bart Schaefer Message-Id: <160616131828.ZM25327@torch.brasslantern.com> Date: Thu, 16 Jun 2016 13:18:28 -0700 In-Reply-To: Comments: In reply to Cory Klein "Recently changed behavior with moving between CTRL-R history search to vi mode" (Jun 15, 4:59pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Recently changed behavior with moving between CTRL-R history search to vi mode MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 15, 4:59pm, Cory Klein wrote: } } 1. CTRL-R } 2. search for command } 3. ESC to end history search, placing result into command prompt } 4. ESC again to enter vi mode } 5. w/l/other vi movement key } } However, recently I'm seeing that in some cases my shell is combining } the ESC from 4 with the movement key from 5 This is the right place to ask, but I'm not able to reproduce a problem. This bit -- } ESC-l => insert "ls" in the current cursor position and execute the } command immediately (huh?) -- makes me believe that some other bindings are getting involved. Try this: PS1="%v |$PS1" zle-keymap-select() { psvar=("$1 -> $KEYMAP"); zle reset-prompt } zle -N zle-keymap-select This should cause your prompt to look like e.g. main -> vicmd |torch% after you hit the first ESC. If that's not what it looks like, that is if it says something other than "vicmd" to the right of the ->, then whatever it does say will be a clue. (If you're already using psvar / %v for some other prompt configuration, there are other ways to display the same information.)