Hi all!
On Wed, 18 Nov 2020 09:14:13 +1100
asymptosis <asymptosis@posteo.net> wrote:
> >I need to quickly enter data for thousands of structured documents - ie:
> >where I know the bulk of the document but there are placeholders for
> >specific variables. Think something like this:
> > ...
>
> Without specifying why you are constrained to only using Vim, it's hard to
> avoid pointing out that there are better ways to do this.
>
> Either m4 or mustach should be your friends unless you can explain why Vim is
> literally the only program that could possibly be used.
>
I can recommend *against* using m4, which although part of the POSIX standard,
is limited and vile in both syntax and behaviour. I have a page on my site with
a roundup of similar text-processing tools and links including preprocessors,
and template systems:
https://www.shlomifish.org/open-source/resources/text-processing-tools/
(Licence is https://creativecommons.org/licenses/by/3.0/ - share and enjoy. The
sources are here:
https://github.com/shlomif/shlomi-fish-homepage/blob/master/src/open-source/resources/text-processing-tools/index.xhtml.tt2
)
> Recommended reading:
>
> https://www.catb.org/~esr/writings/unix-koans/shell-tools.html
>
Heh, nice. Regarding awk and ESR, I wrote this blog post:
https://shlomifish.livejournal.com/1991.html reflecting on ESR's case against
awk on TAOUP.
Regards,
Shlomi Fish
--
Shlomi Fish https://www.shlomifish.org/
Chuck Norris has 99 problems including a bitch.
— https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/
Please reply to list if it's a mailing list post - https://shlom.in/reply .
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20201118101427.54a6abc1%40telaviv1.shlomifish.org.
No comments:
Post a Comment