Friday, November 25, 2022

Re: how trigger vim to open a conversion result?

On Fri, 25 Nov 2022 17:37:26 +0100
meine <trialero@gmx.com> wrote:
> I use pandoc to convert between formats. The string I use just to
> read a Word file is
>
> $ pandoc -f docx -t rst [file]filename[/filename] | less
>
> But how do I trigger vim to open the result (instead of less)?

You can open vim with the output from stdout:

$ echo 'hello world' | vim -


--
Enan
3nan.ajmain@gmail.com
https://git.sr.ht/~enan/
https://www.github.com/3N4N

--
--
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/20221125232611.00002ce1%40gmail.com.

No comments:

Post a Comment