Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Problem with motion commands defined using match-word-by-style used with vi-delete
- X-seq: zsh-users 10163
- From: "Nikolai Weibull" <now@xxxxxxxx>
- To: "Zsh Users" <zsh-users@xxxxxxxxxx>
- Subject: Problem with motion commands defined using match-word-by-style used with vi-delete
- Date: Sat, 22 Apr 2006 01:10:01 +0200
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=KwwWafwao0bthxo4d9tAU+18DGsePefUoonGiOTG6f7KbLS3whyODUkttAfoqYuYHN9mAdhijVYPNsMirr2LmK2Klp1Gd4E9TdLIvPvl3fWu9oCPg7W8COm/t3Oj4+YZsEWedD+es0D7eKtjCKIQwBqUtj9lhq5jfg0dxN6gqDo=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: nikolai.weibull@xxxxxxxxx
When a motion command defined using match-word-by-style, e.g.,
forward-word-match or backward-word-match, is used together with
vi-delete, they won't use the style assigned to the command in
question. The reason is that the $curcontext is set to zle:vi-delete,
not, for example, zle:forward-word-match.
It seems that this issue can be quite hard to fix, considering how
vi-delete is currently implemented. But perhaps there's an easy
solution that I was unable to spot.
Until then I'm going to use my own vi-delete that uses
matach-word-by-style internally instead of whatever it uses by
default. This allows me to define the rather useful text-object
motion-commands that Vim has, e.g., "daw" to delete a word.
n.o.w.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author