-
Notifications
You must be signed in to change notification settings - Fork 45
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
Comments
Agree, this behaviour was surprising for me |
|
@angelic-sedition does #21 result in more expected behaviour? |
Closed
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
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).
The text was updated successfully, but these errors were encountered: