Monday, November 10, 2025

Re: Filtering and stderr

Hello

The ! is the shell escape. It will be using the shell, and redirecting can be done via shell redirects.

You can write a wrapper script that might take a file (or not) that will generate the file you want. In that shell script you might use shell redirects.

Or write/rewrite the utility that you will be using with !. That will create a file using stderr.

If you want to redirect to a buffer you can use the above again. But you might need to write a vim function, command and/or define mappings, based on your requirements.

Regards


On Mon, Nov 10, 2025, 20:16 BPJ <bpj@melroch.se> wrote:
Can I get stderr directed to another file or buffer with `:!` (other than using shell redirects)? I'm sure there is an option but I can't find it! :-)

/bpj

--
--
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/CADAJKhC1oJcpONmCfq4wAUP_otVTskw%2B_9Wk%2BQR-S1-bFq%2B2pg%40mail.gmail.com.

--
--
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/CA%2Bek4BFzftAab%2BGSabq8TXxJ0J45T3xY1XRBTHYzHNL22OYHNw%40mail.gmail.com.

No comments: