On 2009-07-08 07:57 (-0700), KevM wrote:

> I have some tab delimited data of the following form:
> <tab>0001.50<tab>000000100<tab>0007
> <tab>0035.25<tab>000025444<tab>0010
> ...etc...
>
> I would like to replace any consecutive series of "0"s imediately
> following a tab with spaces.

Like this:

    :%s/\t\zs0\+/\=tr(submatch(0), '0', ' ')/g

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to