On 2009-06-04 17:30 (+0200), Jeri Raye wrote:
> :%s/[0-9]/$&
> bbb$1 xyz 90 <not ok>
> ddd$2 xyz 100 <not ok>
> How do I change the command that it replaces the numbers after the xyz
> code?
This might be enough:
:%s/\v<\d+>/$&/
But with the "xyz" requirement it could be like this:
:%s/\v(<xyz>\s+)(\d+)/\1$\2/
These are completely untested :-)
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---