Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vi-kill-word widget/function which respects $WORDCHARS
- X-seq: zsh-users 14259
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: vi-kill-word widget/function which respects $WORDCHARS
- Date: Mon, 27 Jul 2009 12:29:25 +0100
- In-reply-to: <20090724105542.5bf34da0@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090724105542.5bf34da0@xxxxxxxxx>
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