From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14204 invoked by alias); 1 Nov 2015 16:38:18 -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: 20865 Received: (qmail 26044 invoked from network); 1 Nov 2015 16:38:14 -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=ell.io; s=google; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=8aSY6x8qR9FFMI7shyQP2tx3Ddr58H80fhACX6pLpwA=; b=YMM3nPhYw+pj2swV/xPIrOFGiIselVW5ERn3cg5/lv9LNYQbgWBuTRvrftiSolRDFL KIGr2II9Kcwmc5Wt/YNRvxJVWwIFZMfrqcc9V1kiJixFiWfvKfMLsFxX7JwnzebohMBw yY+2fZ85uS+1X8lPAqKi3rL4UQj9zsQlJ8KIA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=8aSY6x8qR9FFMI7shyQP2tx3Ddr58H80fhACX6pLpwA=; b=Rsj89LN/OOv/JWnNOa0OvI4E8FkBfy8jJ3tm0VFlusOUFHBiDknFg0X0ab+OK1/bct oePQrPtMaqUxA4fyY/k2GqcwuRTZIVvhvOFV0Eoa18uyAhQZuHklrkvIobugQ8VZmD/w X3UN6jMP+21AN/E0iddmW3k00Av4/IDiAMeblAYQw2f0ThizZRUbbzZEFbZUJd59+EbL Zcl7wEE4/m7lLRTtL7iaoUz+3HffFqDvbkP40PvFNaV1u68oJNqYDWSOxvGnGtQbQLvZ 1Tsv53H0YZbPyGc9v9LR1kyfAUGYHp/sxtszHako/oD5HGctpqmjnNRYr99BD//5wzc2 L71w== X-Gm-Message-State: ALoCoQmFcTtGYu7tpNSO3CMTKJAdcWd6vTmr0YaOclL47sSDdJZHtWUBNCt8p5cmTFq28NDJOr83 X-Received: by 10.31.157.6 with SMTP id g6mr12353342vke.24.1446395891462; Sun, 01 Nov 2015 08:38:11 -0800 (PST) MIME-Version: 1.0 X-Originating-IP: [204.14.154.133] From: Elliott Cable Date: Sun, 1 Nov 2015 10:37:45 -0600 Message-ID: Subject: edit-command-line, vim, and pasting To: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I've just set up my Zsh to allow me to use the `edit-command-line` widget: autoload -z edit-command-line && zle -N edit-command-line bindkey -M vicmd v edit-command-line 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. When I attempt to paste even a single character, my terminal-bell signals a few times, and then *part* of whatever I attempted to paste (usually sans the first few characters, or in some other way messed up) is actually inserted into the document. I can't verify precisely what character-sequence vim is receiving, but it's something mangled; there's clearly a couple BELs in there, and some ESCs (because I'm already in insert mode when I =E2=8C=98V, and normal-mode commands get run; sometimes the contents of a vim buffer are inserted at the beginning of the *actual* paste, for instance.) It's not anything in my Vim configuration, because it occurs in the same way even if I set `VISUAL=3D"vim -u ''"`, preventing Vim from loading any configuration at all. Strangely enough, however, while it does continue to occur if I invoke a new `zsh` without configuration (`zsh -f`), it *does not* if I indirect that sub-invocation via env =E2=80= =A6 even when manually keeping all of the environment: `env -i "$(env)" zsh -f (what the hell does that imply?) This doesn't occur, ever, outside Zsh; or, specifically, outside of the `edit-command-line` mode. Does anybody have any ideas what could be causing this? =E2=81=93=E2=80=89ELLIOTTCABLE=E2=80=84=E2=80=94=E2=80=84fly safe. =E2=80=83=E2=80=89http://ell.io/tt