Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: No incremental undo in vi mode
- X-seq: zsh-workers 38040
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: No incremental undo in vi mode
- Date: Sat, 27 Feb 2016 08:47:56 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=ZNiPKqnA9vM8NcJL0/624+tHh4ZEXGkEqo9MkOy9MGE=; b=qciQ3XQgfct3eDlD3Ag+uVnI+QMV+6DugI95XfW3M5hTLJ1hNI2aC84F5+XgLn0sZo YduxPrmsUzMNJlWwEJ5J00nL01J3ka4jTl/wElbMsZ6+kJUlFmG0WUm4e3zXFKInePCl hQYycyaLR4iRb+TjGm6V+Lu2RYUsklN+W2EqkXdiBK89vuKiDKjkDNsJP8NySn34CBEY lVRIDE2LANw8zrpeVm1dmJpsIHzumBPsOY2y6Edog1F1no8SkWB+Y6xo2j/aDU47ENKh +rBjgx2wF/t+f1soQzqepxF3s2uk9V4Q1CWsRC1Lsg9RibUs64Ht10Y1+1XOHKr0pNL+ cQiA==
- In-reply-to: <CACi5S_11a6Y_=oMYzhSFTnvzPAUCUy41cO==DBa4ZUP_NucfFA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CACi5S_11a6Y_=oMYzhSFTnvzPAUCUy41cO==DBa4ZUP_NucfFA@mail.gmail.com>
On Fri, Feb 26, 2016 at 10:35 PM, Michael Giuffrida
<michaelpg@xxxxxxxxxx> wrote:
> When using vi bindings, my understanding is that `C-_` should trigger
> readline's undo behavior, as should `u` when in command mode.[1]
Zsh does not use readline. It has its own editor with its own set of
key bindings.
> In zsh in vi mode, it just clears the whole line. So it's not useful for
> undoing the effect of glob expansion or other tab completion.
Are you sure you have C-_ bound to what you think you do? With
bindkey -v
bindkey '\C-_' undo
I get the behavior you expect rather than the behavior you report.
What does
bindkey '\C-_'
output for you?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author