>
> :g/\(abc(\)\(\d*\)\().*\)/s//\1\2\3\r\2
>
> and salt/pepper to taste.
>
> Ie, split the "abc" line into 3 parts: prefix, number, and suffix. Put
> back the original 3 parts, add a return, and add the number.
Impressive solution
Here \1 is used in substitute command. Is there a way I use \1 other
than in substitute command?
thanks,
Sarath
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment