Quantcast

HI Can VIM format a flat file to its fields using a record layout (cobol) ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

HI Can VIM format a flat file to its fields using a record layout (cobol) ?

Zvika Dvir
HI

In IBM the are tools to map a file according to a given structure
(File Aid).

I ask if Vim has thus feature ?

Thanks

Zvika

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: HI Can VIM format a flat file to its fields using a record layout (cobol) ?

Charles E Campbell Jr
Zvika Dvir wrote:
> HI
>
> In IBM the are tools to map a file according to a given structure
> (File Aid).
>
> I ask if Vim has thus feature ?
>
>
Since I haven't used an IBM machine in decades, I don't really know what
"mapping a file to a given structure" means in detail.  However, one can
align things with plugins and patterns (see
http://www.drchip.org/astronaut/vim/index.html/#ALIGN).

So, if aligning is what you want -- do one or more substitutes to put an
alignment character of some sort in between the fields you want, then
run align on that character.  Finally, remove that character.

Chip Campbell

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: HI Can VIM format a flat file to its fields using a record layout (cobol) ?

arocker

>> In IBM the are tools to map a file according to a given structure
>> (File Aid).
>>

Depending on exactly what this means, Perl's "format" might do the trick:
http://www.tutorialspoint.com/perl/perl_formats.htm

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...