Say I do the following in my shell (but where cat is actually another command that does meaningful work with stdin):
$ cat | very | long | pipeline
typing some
input lines
here...
^D
$
However, my shell's line-editing interface is not as nice as vim. I am looking for some sort of vim commandline option so I can do something like this:
$ vim --some-magic-option-here | very | long | pipeline
Basically, I want vim to open with an empty buffer, and, upon exiting, dump the contents of that buffer to stdout.
set -o vi)? Would that solve your problem? – Friedrich Jan 30 '24 at 07:31:help, we would be left with nothing but the eyebrow raising questions. And Google only feeds on the content we generate. – Friedrich Jan 30 '24 at 12:35$ vim --helpaway. Get a grip. – romainl Jan 31 '24 at 08:48