-
Notifications
You must be signed in to change notification settings - Fork 15
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
cw takes whitespace between words #9
Comments
Hmm, OK, now I got that the caveat section in the README is about this... I just don't understand why this was chosen... |
You want
Or just train yourself to use the correct |
Ah, OK thanks :) I'll try to train that. |
I suggest a mention of |
It is there: "This plugin faithfully follows the motion of |
Ah, I didn't connect the dots because there was no reference to |
|
Well, there're references in the diagram above indeed... but I didn't connect |
I also didn't realize from the README that I could just map dw and cw. Glad I found this issue. The mention of "special cases" made me think that it wasn't that simple, i.e. that vim was doing something more clever than this. |
https://github.com/vim/vim/blob/b45125b374cc3a1cef176b704f518c72c518f24c/runtime/doc/motion.txt#L413
It really is just a special case. |
Is it intentional to consume the whitespace between words? I'm getting myself frequently making mistakes because of this change, for example in
|foo bar
(cursor is|
), I see that fordw
it's indeed useful to delete whitespace, maybe, but forcw
it doesn't make much sense, even more because it's inconsistent withciw
that whose purpose is to change word from inside the word, but it differs from behavior given that it doesn't consume whitespace, as in usual Vim.The text was updated successfully, but these errors were encountered: