Skip to content

[Bug]w in cw is same as ce #4390

@icyhat

Description

@icyhat

w in cw is same as ce
When w combine with c, cw behaves same as ce.

They both delete from current cursor to end of current word and insert.

But cw should delete from current cursor to where until next word which contain the blanks between it and next word.

To Reproduce

alpha text:         hello world vim
target word:              world
de:                 hello  vim
dw:                 hello vim
ce:                 hello  vim
cw:                 hello  vim

Expected behavior
cw has two parts, delete and insert. its deletion should be like dw which delete until next word, including blanks.
Environment

  • Vim version [version 8.1.320]
  • OS: [Ubuntu 19.04]
  • Terminal: [GNOME Terminal)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions