43 points · by ingve · 6y ago · 4 comments
The coprocess look very interesting, just yesterday I spent 2 hours trying setting up a bash script with 2 tasks: 1. open mupdf 2. recompile a pdf when sources change, and then send an update signal to mupdf
I ended up giving up because the signalling was too complex for such a simple idea and installed a latex plugin in vim. I'm excited to try again with coprocesses!
cmd --longopt=val `# opt does foo with val` arg
instead, which I find more readable.