-
Notifications
You must be signed in to change notification settings - Fork 1
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
Doesn't work properly with change motions #3
Comments
I use the plugin mostly for variable renaming, and I find it very convenient that, if you edit a word with In practice, in normal mode, the pattern is the word under the cursor wrapped in Now, I'm pretty sure it's possible to just take the text that the motion operated on, and act on it the same way I do with visual mode. But that would drop the word functionality. I could add An option might be to manually compare the text that the motion selected (only in normal mode) with the current I'll think about it and see what I can do. If you can think of a sensible way for the plugin to work with word boundaries and text objects, let me know your thoughts. |
That's exactly what I would expect from a multiple word replacement.
Do you think it would be very complicated to implement? Otherwise, I'd just accept this as a limitation and just use visual mode whenever I need this. |
I'll try to implement it and see how it goes. |
Suppose that I have the following snippet.
And that, from the first character in the first line, I type
c2eGood morning<esc>
The result would be
The text was updated successfully, but these errors were encountered: