We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Vim supports search/substitution with bounded queries: :.,+2s/something/something_else
:.,+2s/something/something_else
Which is supposed to search from the current line, to the current line plus 2, for the string something and replace it with something_else.
something
something_else
It looks like the +2 is ignored.
The text was updated successfully, but these errors were encountered:
I also ran into a similar issue with just :.s/something/something_else.
in particular if I have this code example:
badger badger badger badger badger badger badger badge
Then I go to the third line and type .s/badger/mushroom/g, I get the following output:
.s/badger/mushroom/g
badger mushroom mushroom mushroom badger badger mushroom mushroom
when I wanted
badger badger badger mushroom mushroom mushroom badger badge
Any ideas what the issue might be?
Sorry, something went wrong.
No branches or pull requests
Vim supports search/substitution with bounded queries:
:.,+2s/something/something_else
Which is supposed to search from the current line, to the current line plus 2, for the string
something
and replace it withsomething_else
.It looks like the +2 is ignored.
The text was updated successfully, but these errors were encountered: