Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iw selects spaces and newlines #17

Open
noctuid opened this issue Aug 6, 2014 · 4 comments
Open

iw selects spaces and newlines #17

noctuid opened this issue Aug 6, 2014 · 4 comments

Comments

@noctuid
Copy link

noctuid commented Aug 6, 2014

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).

@faceleg
Copy link

faceleg commented Jan 12, 2015

Agree, this behaviour was surprising for me

@bkad bkad closed this as completed Jan 14, 2015
@bkad bkad reopened this Jan 14, 2015
@faceleg
Copy link

faceleg commented Jan 28, 2015

iw also eats , characters.

@faceleg
Copy link

faceleg commented May 28, 2015

@angelic-sedition does #21 result in more expected behaviour?

@genesy
Copy link

genesy commented Feb 16, 2020

still an issue 5 years later, anyone have a working fork for a fix for this?

ok had to learn basic vimscript just to fix this..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants