Skip to content

Changing words deletes a trailing underscore #10

@oconnor663

Description

@oconnor663

Normal vim behavior:

  • Start with the line "three words here". Put the cursor on the start of "words".
  • Typing 'dw' deletes "words" and also the space after it.
  • Typing 'cw' deletes "words", preserving the spaces on both sides, before dropping into insert mode.

CamelCaseMotion behavior:

  • Start with the line "three_words_here".
  • 'd,w' works as above, deleting the underscore after "words"
  • Bug: 'c,w' doesn't work as above. Instead, it deletes the trailing underscore like 'd,w'. After the word is changed, the underscore has to be retyped. The expected behavior would be for the trailing underscore to remain.

Awesome plugin, by the way, thanks a million!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions