Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: make vi-*-word widgets respect WORDCHARS
- X-seq: zsh-workers 51293
- From: Oliver Kiddle <opk@xxxxxxx>
- To: ml_zsh-workers@xxxxxxxxxxxxxxxxx
- Cc: zsh-workers@xxxxxxx
- Subject: Re: make vi-*-word widgets respect WORDCHARS
- Date: Tue, 10 Jan 2023 18:06:58 +0100
- Archived-at: <https://zsh.org/workers/51293>
- In-reply-to: <20221231220451.448629a1@frustcomp.hnjs.home.arpa>
- List-id: <zsh-workers.zsh.org>
- References: <20221231220451.448629a1@frustcomp.hnjs.home.arpa>
On 31 Dec, ml_zsh-workers@xxxxxxxxxxxxxxxxx wrote:
> The vi-backward-kill-word widget does not seem to respect WORDCHARS:
> Is this a bug or intended?
It is intended. vi-backward-kill-word works in a vi compatible manner
both in terms of word endings but also includes refusing to delete past
the cursor position where the current insertion started. Did you want
that behaviour? Vim relaxes that unless configured otherwise.
> If intended: is there a different way of adjusting the behaviour of vi-backward-kill-word?
No. But you can just bind Ctrl-W to backward-kill-word:
bindkey '^W' backward-kill-word
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author