Outputting shell-command-edited buffer into a new buffer in Vim? E499: Empty file name for '%' or '#', only works with ":p:h"

Viewed 174

This thread here discuss about piping output of shell command into a new buffer in vim but it does not discuss it by using the current buffer like

 %new | r !%gcut -d '"' -f2,4,6,8,10

where the percentage sign % tries to use the current buffer, unfortunately resulting to

E499: Empty file name for '%' or '#', only works with ":p:h"

so

How can I pipe the shell-command-edited buffer into a new buffer in Vim?

1 Answers
Related