4 ms·
You can pipe the output of cURL to Vim like this: curl ... | vim - Then, you can review the script, maybe tweak it a little, and you can send it to sh's std
by diogotito 7y ago
You can pipe the output of cURL to Vim like this:
curl ... | vim -
Then, you can review the script, maybe tweak it a little, and you can send it to sh's stdin by running
:w !sh
Or you can just quit Vim (:q! or ZQ) and nothing happens.