I know about
#, which reference the filenames of the current and previous buffers in command-line mode. Is there any way to similarly reference other buffers?
For example, let's say that
:ls gives me:
1 #h foo.txt 2 h bar.txt 3 %a baz.txt
...and I want to use a command to the effect of:
:!pandoc foo.txt bar.txt baz.txt -o out.pdf
Only with a bit less typing. I would imagine something along the lines of
:!pandoc b1 b2 b3 -o out.pdf
So. Is there anything like this? Is there an addon somewhere, or some handy bit of vimscript I could use?