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

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



spiralofhope wrote:
> I've been fiddling with my bindings, and I bumped into the various vi
> bindings, which all seem to respect my $WORDCHARS
> 
> That includes bindings like:
>  bindkey '^[^?' vi-backward-kill-word
> 
> However, I'm interested in some sort of 'vi-kill-word' to kill the
> current word (in the forward direction), while still respecting
> $WORDCHARS (kill-word does not). Is there such a widget?

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

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

-- 
Peter Stephenson <pws@xxxxxxx>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


'member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom'



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