zsh-users
 help / color / mirror / code / Atom feed
* Problem with motion commands defined using match-word-by-style used with vi-delete
@ 2006-04-21 23:10 Nikolai Weibull
  2006-04-22  5:00 ` Bart Schaefer
  0 siblings, 1 reply; 11+ messages in thread
From: Nikolai Weibull @ 2006-04-21 23:10 UTC (permalink / raw)
  To: Zsh Users

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-04-25  3:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-21 23:10 Problem with motion commands defined using match-word-by-style used with vi-delete Nikolai Weibull
2006-04-22  5:00 ` Bart Schaefer
2006-04-22 11:04   ` Nikolai Weibull
2006-04-22 18:35     ` Bart Schaefer
2006-04-22 21:38       ` Nikolai Weibull
2006-04-23  6:09         ` Bart Schaefer
     [not found]           ` <dbfc82860604230157h52f91585ncfd5a984a1a08c67@mail.gmail.com>
2006-04-23 15:53             ` Bart Schaefer
2006-04-23 16:13               ` Nikolai Weibull
2006-04-23 23:08               ` Peter Stephenson
2006-04-24 19:39                 ` Nikolai Weibull
2006-04-25  3:06                   ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).