> stosss wrote:
>> I want to do :%s@\(<br />\)\(1\)@\1<linebreak>\2@
>>
>> and have it find <br />1 and return:
>>
>> <br />
>> 1
>
> I'm not sure what "return" means, but the following will change
> each "<br />1" by inserting a newline before the "1".
>
> :%s@\(<br />\)\(1\)@\1\r\2@g
>
> I would be inclined to replace "<br />" with "<br\s*/>".
Thank you!
I also found that typing Ctrl-v and type Ctrl-M will result in the
same thing. Your way is much easier to remember.
--
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:
Post a Comment