[Vimpulse] Bug with cw on whitespace
Hi, The "cw" key sequence doesn't seem to consume extra whitespace anymore. For example: _ text If the cursor is "_", and you type dw, all whitespace up to "text" is removed. If you type cw, only a single space is removed. Not too much of a nuisance, but something that would be nice to have working. Thanks :-)
On 2010-07-30 17:49, Stephen Bach wrote:
_ text
If the cursor is "_", and you type dw, all whitespace up to "text" is removed. If you type cw, only a single space is removed.
Fixed in commit [a603056379]. This is a Viper quirk. Back in the day, Vimpulse redefined Viper's "cw" code quite forcefully to get rid of the classical "change state", affecting whitespace behavior. This code is long gone, and in newer versions, the change state is toggleable. I haven't changed `viper-forward-word' directly, but I have modified Vimpulse's wrapper for it in Operator-Pending mode. "w" is one of those mutable motions whose behavior depends on the operator calling it. Its "change clause" is now only invoked if point is not at whitespace. -- Vegard
On Wed, Aug 04, 2010 at 02:29:11PM +0200, Vegard Øye wrote:
On 2010-07-30 17:49, Stephen Bach wrote:
_ text
If the cursor is "_", and you type dw, all whitespace up to "text" is removed. If you type cw, only a single space is removed.
Fixed in commit [a603056379].
Works. Thanks!
participants (2)
-
Stephen Bach -
Vegard Øye