【发布时间】:2011-10-19 10:19:16
【问题描述】:
我需要将 vim 中的一些选定文本作为参数值传递给 curl 命令。例如。我需要能够运行
curl -sSd css="body { border-radius: 5px; }" http://prefixr.com/api/index.php
来自 vim。显然,“body {border-radius: 5px;}”部分将是动态的。通常,vim 中的可视模式选择。
如何获取选定的文本并将其作为参数传递给 curl?
【问题讨论】:
-
将选定文本作为
STDIN提供给shell 命令的相关问题:Pipe to shell and receive output on info line 和Piping to and from the shell, working with entire buffers