Find a value , and insert it at the begining of line

"'c.willis111 ' via vim_use" <[email protected]> Tue, 26 May 2026 17:06:50 +0100 (BST)
Newsgroups gmane.editors.vim
Message-ID <[email protected]>
------=_Part_680982_792907317.1779811610808
Content-Type: text/plain; charset="UTF-8"; format=flowed
Content-Transfer-Encoding: quoted-printable


Hi
=C2=A0
this works. Is there a niftier way? (ie without capturing the context).
=C2=A0
:%s/\(.*\)\(18\d\d\)\(.*\)/\2\1\2\3/
=C2=A0
It seems that the nested capture which wd have been a tad shorter,=20
doesn't work.
=C2=A0
regards - Chris

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

---=20
You received this message because you are subscribed to the Google Groups "=
vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_use/483=
eb624.1c088.19e6509f0f5.Webtop.140%40btinternet.com.

------=_Part_680982_792907317.1779811610808
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<p>Hi</p><p>&nbsp;</p><p>this works. Is there a niftier way? (ie without ca=
pturing the context).</p><p>&nbsp;</p><p><span style=3D"font-family:undefin=
ed;font-size:14px;">:%s/\(.*\)\(18\d\d\)\(.*\)/\2\1\2\3/</span></p><p>&nbsp=
;</p><p><span style=3D"font-family:undefined;font-size:14px;">It seems that=
 the nested capture which wd have been a tad shorter, doesn't work.</span><=
/p><p>&nbsp;</p><p><span style=3D"font-family:undefined;font-size:14px;">re=
gards - Chris</span></p>

<p></p>

-- <br />
-- <br />
You received this message from the &quot;vim_use&quot; maillist.<br />
Do not top-post! Type your reply below the text you are replying to.<br />
For more information, visit <a href=3D"http://www.vim.org/maillist.php">htt=
p://www.vim.org/maillist.php</a><br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;vim_use&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">vim_use+uns=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
vim_use/483eb624.1c088.19e6509f0f5.Webtop.140%40btinternet.com?utm_medium=
=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/vim_use/483=
eb624.1c088.19e6509f0f5.Webtop.140%40btinternet.com</a>.<br />

------=_Part_680982_792907317.1779811610808--