119912Re: Substitute within a highlight group.
- Jan 1, 2011On 01/01/2011 11:03 PM, David Fishburn wrote:
> What the plugin does, it is positions the cursor to the requiredI guessed.
> highlight group and then runs Vim's standard regex.
> This took care of the entire file:Yes, in my case this will work fine.
> :%SRHiGrp '\(\d\+\)','__\1__'
But what if group may have spaces?
some c code /* comment with spaces */ some c code;
And you want to remove this comment? Or something else.
Of course you can write something like this:
But this only adds difficulty to regex and makes it dependent on case.
I know, this is dumb example, but I can't find good one.
> I have uploaded a new version 5.0 to address this.Thank you. Now search works good.
And how to select group for replace from script (without cursor
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
- << Previous post in topic Next post in topic >>