Friday, April 2, 2010

Re: Search & Replace

On Fri, Apr 2, 2010 at 10:10 AM, Kunal Bajpai <kunal.bajpai@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>
_____________________________


You can do this with:
: /<p>/, /<\/p>/ join
See help :/

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

No comments: