From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20420 invoked by alias); 2 Nov 2015 11:22:21 -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: 20873 Received: (qmail 14031 invoked from network); 2 Nov 2015 11:22:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MISSING_HEADERS,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1446462995; bh=zEArTcnENUxG/X5wwRW3gEmsrdY0w2KSqXmlpyIhQHc=; h=From:cc:Subject:In-reply-to:References:Date:From:Subject; b=Ol+RYrKKO7l9/Us3z6cgPulszGYmTZO7FuuuS2IDPPaVUWAF8IJ4W8pW9JkQe3RfmC4S110YDT9q/7KmawOf8qikc47VZsFfeLN7XP6iq85aT0es6pW49gWwyrag739XlJ8vTG4S2sVNSgWe5ZgdZ2bjiRdBgRU+YZJYF7bdMetBdfB4QqhG5Qc/6y2RSiMHfvGbD1VvwZ6KvuHbYfgqDOxUqI5vmXZhNSGcThAjvmthOdvaaqiJHIzaMgjLv8jD3XodDwg3fC6YarBI3fNg7/9JoKIllQ8eyaETuoaTRTaGQ2b3VmZpe2B9qxuEvL+fBey8OVL6bO7zP2uqQcKKWg== X-Yahoo-Newman-Id: 254646.57882.bm@smtp130.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: cRD_jCsVM1ldYUKQeii.4QyGbWghgZZmWKMVXhiz7.M3Wtr 96Yf7C9SiXbGGcnmUHoSGO_jMPtpQUdT6ntlWfkxMsIfJPx0TVInN_kseq3s PPweeV1nfwoN70n2xOP0rWeg0rKI0IwxqMRuAuk70A2GTheA3TYfeZ4Vd68p cPySj7qSWyMXN8RuejNDR294uGIjOJx7mWiOrbu70nm5V8vL8T2r2IY4LBr5 Dj98pJIxaEhUogf5ZMiikpf1mtWYSCmqa5QE5ghUVnG0O0R6vntGMUYZMwvF 2bswB1.nydFnJfoA_jZr8bA86kt.UBgdfDMxi5idauVWt_pZw2PcydkbBcck Pn0FmuQ3JFtYTNpGgLFU0HVkb6czd10tcEfPlsHseq56VfqIeUGu2uubiP2m XPzpvWbELffVrwGU7wZ_.pcCmiyGKdO0AzKC0Jjnncy_.0Rm2C9vuw1ShNVE h_SHBP0iiDwbst5JzK8qxykaC8jbAmP2rKEqp3Ml6Akm__KhpeNo3xXaQTmr 9JNQiv2pVO_0tsmqU8tkuNZfRK4B_iQ-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- From: Oliver Kiddle cc: Elliott Cable , zsh-users@zsh.org Subject: Re: edit-command-line, vim, and pasting In-reply-to: <151101103921.ZM16163@torch.brasslantern.com> References: <151101103921.ZM16163@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18027.1446462993.1@thecus.kiddle.eu> Date: Mon, 02 Nov 2015 12:16:33 +0100 Message-ID: <18028.1446462993@thecus.kiddle.eu> Bart wrote: > This is almost certainly yet another unexpected knock-on effect of the > new bracketed-paste handling. Indeed. > We need a generalized fix for this. Oliver? I'm not sure we can do anything more generalized than the following patch to edit-command-line. Perhaps the zle builtin could have an option to cover the situation but that doesn't help much because the function would still need to invoke the builtin. What did you have in mind? This also changes the comments to suggest ! rather than v as the key for edit-command-line (v overrides a default binding that was added since edit-command-line was written: visual mode). Oliver diff --git a/Functions/Zle/edit-command-line b/Functions/Zle/edit-command-line index 103a1c1..b814552 100644 --- a/Functions/Zle/edit-command-line +++ b/Functions/Zle/edit-command-line @@ -1,8 +1,8 @@ # Edit the command line using your usual editor. -# Binding this to 'v' in the vi command mode map, +# Binding this to '!' in the vi command mode map, # autoload -Uz edit-command-line # zle -N edit-command-line -# bindkey -M vicmd v edit-command-line +# bindkey -M vicmd '!' edit-command-line # will give ksh-like behaviour for that key, # except that it will handle multi-line buffers properly. @@ -10,7 +10,9 @@ exec