Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
edit-command-line, vim, and pasting
- X-seq: zsh-users 20865
- From: Elliott Cable <me@xxxxxx>
- To: zsh-users@xxxxxxx
- Subject: edit-command-line, vim, and pasting
- Date: Sun, 1 Nov 2015 10:37:45 -0600
- 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=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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 ⌘V, 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="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 …
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?
⁓ ELLIOTTCABLE — fly safe.
http://ell.io/tt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author