Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: make vi-*-word widgets respect WORDCHARS



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