From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9601 invoked by alias); 1 Nov 2015 18:39:32 -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: 20866 Received: (qmail 21539 invoked from network); 1 Nov 2015 18:39:29 -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=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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:content-type; bh=w6EZEVZGy/PbbAgczDfexp70KcQ92qlnhGDjwnWRq2I=; b=YXxMYt+GukXjS3YI0bGKGab9da62L+jYFMq4/s1eMWUgVWPhRTT1rfvjTeDlC4zY01 mpv+MOORl/64r8aQefiBsx/4upblbLyG3uknDi0xaA3sbDrxKB8gxznsIYiybFdlzwg/ tP+Gxd4UXnI+CPpIRUG6+ljP5P5rX46U07IFV95yjaXRNWKb9fo3SyePxZQbZD7kDxTG SemUCdI7FAhSTeTXXXW/nXoekkNoAU5fg284FUIFJIVqmLzxsxKKR8ZN0VIC4KtX8Gwt 8WBlQyMJqCBozUNKJUX0eDHq3j5QgD8Qs2OaY2taIRB1hjuSf0rKdLjUYgF+r2naXi1J QAOQ== 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:content-type; bh=w6EZEVZGy/PbbAgczDfexp70KcQ92qlnhGDjwnWRq2I=; b=m56BEAbjamdPeBp1X0/4AREzBnSn78/nVv3skPmcA4AS5ztscq0fCoz/YfJbpcDUIo zEzlneaFMZRtD+XybEPnEN+eQIg+r36aIJ4QE4aI2huz3+dFWHa0X1Y8QhHFRigdOwfo T47b7GkfZk29R95pU7rG2vRcfTL3cI8+PpXkFXO4wcO5LPnlCSv/cWkrKHvmyC2oS/zB iRPc99OYw9WCg1Y8uuq/q+OogRRQNZU9Qv1DngCuJ0X+f89RAdtmyEJWYpbwseFSln2w 1BE91JoPF0s2BsbMTr8es9/Hz8bz1scCjf9CmAT6d8fmXRHGdmaf/kZpvhtCTxesx+q1 wWJA== X-Gm-Message-State: ALoCoQnY/1dDXM0wGSUlvmJE+vK6Lcn7VddXj4HtKDM1aqnsueO62aAjK7aoDs6FpErM7EDjWhRg X-Received: by 10.182.22.229 with SMTP id h5mr12589889obf.26.1446403164585; Sun, 01 Nov 2015 10:39:24 -0800 (PST) From: Bart Schaefer Message-Id: <151101103921.ZM16163@torch.brasslantern.com> Date: Sun, 1 Nov 2015 10:39:21 -0800 In-Reply-To: Comments: In reply to Elliott Cable "edit-command-line, vim, and pasting" (Nov 1, 10:37am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Elliott Cable , zsh-users@zsh.org Subject: Re: edit-command-line, vim, and pasting MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 1, 10:37am, Elliott Cable wrote: } } For some reason I can't puzzle out, though, `vim` *when invoked via } `edit-command-line`* goes haywire when I try to *paste* something, } even with `:set paste` enabled. This is almost certainly yet another unexpected knock-on effect of the new bracketed-paste handling. Bracketed-paste is enabled when entering ZLE and not disabled until exiting from zle, so any widget that invokes an external command is going to hand over control of the terminal with bracketed-paste still in effect. This will cause the terminal to send a sequence beginning with ESC at the start of the paste, which will mess with whether vim is in insert mode. We need a generalized fix for this. Oliver? Meanwhile you might be able to get away with using the "pastetoggle" setting. Examples here: http://vimdoc.sourceforge.net/htmldoc/options.html#%27pastetoggle%27 The {keys} to use are ESC [ 2 0 0 ~ to start and ESC [ 2 0 1 ~ to end paste mode.