On Tue 30 Jun 2009 at 19:31:41 PDT [email protected] wrote:
>
>
>
>Hi,
>
>I want to make from this input (example):
>
>a d f g h
>b c d e f
>g h i
>a i
>b f g j
>
>this output
>
>
>a     d   f g h
>  b c d e f
>            g h i
>a               i
>  b       f g      j
>
>
>is there any vim script, which does this for me?
>I am working under Linux and vim (console).
>

What are the constraints?  

Will the input lines always be pre-sorted, as in your example?  I.e.,
will you ever have a row like "b d a f"?  If so, should the
"tabulerization" sort it?

Will each element always be one character wide and no wider?

In your example, for each character between a and j, there is at least
one row containing it.  Will you need to handle cases where one or more
elements in the range are not represented? I.e., should the result
contain empty columns?


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

Reply via email to