Tuesday, May 26, 2026

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

Hi

 

this works. Is there a niftier way? (ie without capturing the context).

 

:%s/\(.*\)\(18\d\d\)\(.*\)/\2\1\2\3/

 

It seems that the nested capture which wd have been a tad shorter, doesn't work.

 

regards - Chris

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

---
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 email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/483eb624.1c088.19e6509f0f5.Webtop.140%40btinternet.com.

No comments: