Friday, April 2, 2010

Re: Search & Replace

On Apr 1, 11:40 pm, Kunal Bajpai <kunal.baj...@gmail.com> wrote:
> To this html code I wanted to select the text between the tags and replace
> the original text with \n character removed. There is a more complex example
> that I wanted to ask, here is the problem:
>
> Original
> ______________________________
> <p>Mike
> <strong>Gilbert </strong>
>  Senior</p>
> _____________________________
>
> After search & replace:
> ______________________________
> <p>Mike <strong>Gilbert</strong> Senior</p>
> _____________________________
>
> I hope you really got what I was asking.
>

You can also try gqat from normal mode. Potentially you could repeat
this using a macro with a count (999999@q) or a recursive macro:

http://vim.wikia.com/wiki/Record_a_recursive_macro

--
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

To unsubscribe, reply using "remove me" as the subject.

No comments:

Post a Comment