在 vim 内部的电流缓冲区上运行卷曲



如何在可视模式下或整个缓冲区的标记 url 上运行 curl 命令。

例如:

假设您在当前缓冲区中有 1 行,其中包含:

https://example.com/

我试过:

[1]    :r !curl -kv
[2]    :r !curl -kv .

返回:

[1]     curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
[2]     curl: (6) Could not resolve host: .

而不是 . 您可以使用Crtl-R "插入缓冲区。

(其他寄存器可以类似地插入。如果需要,您可以在之前列出寄存器,例如:registers

最新更新