Can Vim do something like a pipe filter?

  question, vim

What we want to achieve is

ls | vim - | xargs /bin/rm

Ls runs and sends the content to vim, which can be edited at will. Finally, when exiting vim, print formatted standard input to output to enable the pipeline to continue.

Can this be achieved?

vim -c ...
But … I want to ask you why you don’t use ed/sed/awk/perl?