cb vs. cge; compare ce vs. cw

13 views
Skip to first unread message

Brennan Vincent

unread,
Oct 17, 2020, 8:08:59 PM10/17/20
to vim...@googlegroups.com
`cw` behaves like `ce`. As explained in motion.txt:

> Special case: "cw" and "cW" are treated like "ce" and "cE" if the
cursor is on a non-blank. This is because "cw" is interpreted as
change-word, and a word does not include the following white space.

Similarly, one might expect `cge` to be an alias for `cb`; but it isn't.
Typing `cge` will faithfully backwards up to and include the last
character of the preceding word.

Is this inconsistency a bug/oversight?

Reply all
Reply to author
Forward
0 new messages