Charlie Kester <[email protected]> [09-07-01 04:50]:
> 
> 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?
> 
> 
> 
Oh ... uuuuhhh ... hrrrmm

Yes, the input was incomplete, sorry.

I will try to complete it:

"a b c" stands for three words that is each character is one word.
Separation is done by blanks (\s) of a unknown count, anything else
is part of a word. Or in other words: "a=2.5 Anoth"er"(word)!=23/8:l" are
two words.
The words are presorted.
There are no empty columns.

Hope, that is more complete as my first attempt...



-- 
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.


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

Reply via email to