I want to do :%s@\(<br />\)\(1\)@\1<linebreak>\2@
and have it find <br />1 and return:
<br />
1
when I am finished running search and replace.
<linebreak> = whatever is correct
I know <CR> doesn't work because I tried it. It does this <br /> 1
I know {ctrl-v}{CR} doesn't work either but that seemed to be what a
site I found was saying to use. It does this <br />{ctrl}{CR}1
I know {ctrl-v}<CR> doesn't work. It does this <br /><ctrl-v> 1
I haven't been able to find the answer. I know this has to be possible.
Will someone point me to the documentation that will tell me how to do
what I want to do?
Thanks
--
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