What I 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, it prints the formatted standard input to the output, so that the pipeline can continue.
Can this be achieved?
vim -c ...
不过.... 我想问你干嘛不用ed/sed/awk/perl?