[Vimpulse] Bug with cw on whitespace
vegard_oye at hotmail.com
Wed Aug 4 14:29:11 CEST 2010
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
More information about the implementations-list