I've established that it's possible to take the contents of a buffer (even one that isn't saved anywhere) and pipe it to a command.like so: :w ! petit --wordcountBut! Is it possible to take the output of said command and pipe it back out to a new empty buffer in vim, without writing the output to a file...just writing back into a new buffer...using ex?
Pipe the content of the current buffer into an external command and then read the output into a new empty buffer?
buffers;external command;ex mode