Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ctrl-u in vim-mode. bug.
- X-seq: zsh-workers 49547
- From: Oliver Kiddle <opk@xxxxxxx>
- To: Taras Halturin <halturin@xxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: ctrl-u in vim-mode. bug.
- Date: Sat, 06 Nov 2021 16:04:17 +0100
- Archived-at: <https://zsh.org/workers/49547>
- In-reply-to: <CAOTqX0AwFKxzYF=KKfS=V0LQbT9zvitoUc=9xbBZhZb2b+SPzw@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAOTqX0AwFKxzYF=KKfS=V0LQbT9zvitoUc=9xbBZhZb2b+SPzw@mail.gmail.com>
Taras Halturin wrote:
> It seems I found a bug in zsh with vim-mode enabled. Ctrl-U (clear line to the
> beginning) doesn't work correctly after switching between "normal" and "insert"
> modes.
That's not what Ctrl-U does in vi or vim. It deletes from the cursor
back to the point where insert mode was started.
In the zsh documentation for vi-kill-line, exactly that behaviour is
described and that is what you get.
If that's not what you want, you can bind Ctrl-U to kill-whole-line or
kill-buffer or to whatever precise behaviour you want.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author