Skip to content

iw selects spaces and newlines #17

@noctuid

Description

@noctuid

Unlike vim's default iw, doing something like diw with CamelCaseMotion's iw on "word word" with the cursor on the first w will result in "word" instead of " word". If it is used at the end of a line (if the cursor is on the second w in the above example), the next line will be brought up to the current line after a ciw or diw. Instead of leaving spaces and newlines, it deletes them.

I'm not sure if this is intentional, but camel case's ie acts more like vim's default iw (except, for example, when on an empty line). I think it would make more sense to have camelcase's iw be named aw (and make it stop removing newline chars).

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