Skip to content
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

Visual star search replace #12

Open
ghost opened this issue Jul 14, 2021 · 1 comment
Open

Visual star search replace #12

ghost opened this issue Jul 14, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 14, 2021

I request adding an option (if not already present) to use this plugin as normal, but hit ? or a similar key to start replacing text. For instance, say I have a file:

......occurrence...
....occurrence...

I would then select the first occurrence and hit * as usual, but press ? and type what to replace it with (then hit enter)

@bronson
Copy link
Owner

bronson commented Jul 14, 2021

Yeah, this would be handy. I've always switched out of search mode and written a :substitution expression... and I've never questioned doing that until now.

I would expect the solution to apply to all star-searches, not just visual-star-searches. Heck, I'd expect it to work any time n and p take you to a new match, so all searches.

Have you looked for a plugin that can perform find-and-replace using vim's built-in searching (without resorting to writing ex :s// expressions)? If that plugin exists, I would expect it to work fine with visual-star-search.

If it doesn't exist, someone should write it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant