You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to be clear, what i explained in 2 is also default vim behavior for cw, but it's not consistent with dw or vw or yw etc and it's redundant because ce does the same thing. its just a little annoying when you actually want to change up to the next word, you end up having to do dwi or ct( or something.
Yes, I know. I specifically reproduced the behavior of cw because people asked for it, so it should be there. You probably have an oudated version of the plugin if that behavior is not happening for you.
Activity
chaoren commentedon Jul 7, 2022
I fixed this a while back. Try updating the plugin?
chaoren commentedon Jul 7, 2022
Oh, the cursor is on the space before the
ain the first case. Yes, that looks like a bug.I can't reproduce the second case.
1wsx10 commentedon Jul 7, 2022
2 is more of a feature request. i'll probably have a look at making a PR at some point.
1wsx10 commentedon Jul 7, 2022
to be clear, what i explained in 2 is also default vim behavior for
cw, but it's not consistent withdworvworywetc and it's redundant becausecedoes the same thing. its just a little annoying when you actually want to change up to the next word, you end up having to dodwiorct(or something.chaoren commentedon Jul 7, 2022
Yes, I know. I specifically reproduced the behavior of
cwbecause people asked for it, so it should be there. You probably have an oudated version of the plugin if that behavior is not happening for you.tuurep commentedon Jul 27, 2024
It would be elegant if the cpoptions preference for this would be respected
In Vim, this is
(note: lowercase)
But in Neovim, it's
Docs:
Vim: https://vimhelp.org/options.txt.html#cpo-z
Neovim: https://neovim.io/doc/user/options.html#cpo-_
Oh yes also, I reproduced your "Thing 1". I'm interested in this issue as a whole.
Fix `cw` edge cases when cursor is on a space
Honor `cpoptions_z` for `cw`
Fix `cw` edge cases when cursor is on a space
Honor `cpoptions_z` for `cw`
Fix `cw` edge cases when cursor is on a space
Honor `cpoptions_z` for `cw`