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

Re: vi-kill-word widget/function which respects $WORDCHARS



On Mon, 27 Jul 2009 12:29:25 +0100
Peter Stephenson <pws@xxxxxxx> wrote:

> I don't really understand the question since kill-word does respect
> $WORDCHARS.

My $WORDCHARS is
*?_-.[]~=/&;!#$%^(){}<>

So if I begin this command:
foo/bar baz

and I go to the first character (f) and I do kill-word, I would expect
to end up with one of these:
/bar baz
bar baz

However, the entire first is deleted on my install (4.3.9).

I bound alt-delete in my case:
bindkey '^[[3;3~' kill-word

> You can do clever things with the replacement functions described in
> the zshcontrib manual; search for "match-words" for the description.

Ok, I'll check this out.  Thanks.



Messages sorted by: Reverse Date, Date, Thread, Author