Hi Dvalin,
this usecase illustrate what I said in misc@openbsd about the appliance
of vi to the vim culture because most of the solution is outside vim to
me.
A shell script will be much easier to maintain and extend as well as
resusable (from a makefile or a shell script).
wanabe is somewhere in $PATH and its content is
#!/bin/sh -eu
sed -E '/^W\($/,/^\)$/!d' "$1" |
sed '1d;$d' |
${SHELL:-} -s -- "$@"
so now I can write a roff file with
.ig
the W() script is hte way to get a document from the current file
W(
d="$1"; shift
dformat "$d" |
eqn |
pic |
soelim |
groff -Tpdf -Kutf-8 "$@"
)
..
and from vim
let &mp='wanabe % > /tmp/vbe.pdf'
regards
--
Marc Chantreux
--
--
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 visit https://groups.google.com/d/msgid/vim_use/aAH-nsqowFzmpSUT%40prometheus.
Friday, April 18, 2025
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment