> You could try
> 
>    :%s/\t\zs0\+/\=repeat(' ', strlen(submatch(0)))/g
> 
> This assumes Vim7 or later as repeat() was added in v7.  If you 
> want to keep at least one digit (e.g. "000000000"), you could use
> 
>    :%s/\t\zs0\+\ze\d/\=repeat(' ', strlen(submatch(0)))/g

or, you could use

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

Just so you have multiple solutions at your disposal.

-tim




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

Reply via email to