I would like to view the output of echo in vim, and save to a file after having a look at it. I have tried echo $PATH | vim, but I get the following error:
Vim: Warning: Input is not from a terminal
Vim: Error reading input, exiting...
Vim: Finished.
What can I do?