Monday, January 30, 2017

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

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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: