Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: edit-command-line, vim, and pasting
- X-seq: zsh-users 20866
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Elliott Cable <me@xxxxxx>, zsh-users@xxxxxxx
- Subject: Re: edit-command-line, vim, and pasting
- Date: Sun, 1 Nov 2015 10:39:21 -0800
- 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==
- In-reply-to: <CAPZ477Oz5BCB797hpE5SO+X9f_Sz8BXX49nUZ9jPERgVGcXHzw@mail.gmail.com>
- 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
- References: <CAPZ477Oz5BCB797hpE5SO+X9f_Sz8BXX49nUZ9jPERgVGcXHzw@mail.gmail.com>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author