You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Rune cw acts like dw and drops to insert mode. However, in Vim outside of Rune the two behaviours are different: dw deletes the word and consumes the space after, while cw deletes until the end of the word like de and doesn't consume the space after, then drops to insert mode.
What you expected
Like in Vim, cw should delete until end of word only, then go to insert mode
Steps to reproduce
Try it out in the text editor.
This is probably a good first issue.
Area
Editor and text handling
Rune version
v1.2.1-138-gc5aaac32
OS and architecture
Ubuntu 24.04
Shell
No response
Logs, crash report, or screenshots
Relevant configuration
Checks
I searched existing issues and this is not a duplicate.
I can reproduce this on the latest released version.
Opened #173 for this. cw/cW now select through the word end (Vim's ce-clamped-to-current-word semantics) instead of routing through the dw start-word motion, so the separator before the next word is kept. A word end under the cursor counts as the first end, and on blanks the plain w motion still applies. Verified against Vim 9.1 for word start/middle/end, counts (2cw, c2w, 2c2w), and cW; updated the count tests that had encoded the dw-style expectation.
Activity
JoeJoeflyn commentedon Sep 28, 2026
working on this
santhiprakash commentedon Oct 1, 2026
Opened #173 for this.
cw/cWnow select through the word end (Vim'sce-clamped-to-current-word semantics) instead of routing through thedwstart-word motion, so the separator before the next word is kept. A word end under the cursor counts as the first end, and on blanks the plainwmotion still applies. Verified against Vim 9.1 for word start/middle/end, counts (2cw,c2w,2c2w), andcW; updated the count tests that had encoded thedw-style expectation.JoeJoeflyn commentedon Oct 1, 2026
thanks for pr @santhiprakash
Fix Vim cw to change through word end (#173)