Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我经常使用rg -i PATTERN | vim -管道将结果传输到新的 vim 会话。
rg -i PATTERN | vim -
有没有办法在一个正在运行的 vim 会话:term中以无阻塞的方式使用一个打开的终端(打开)来做到这一点?
:term
我知道:vimgrep并且它已经配置为与 rg 一起使用。
:vimgrep
有没有办法从内部并行运行多个 rg 命令?
我正在使用 Windows 10。
更新:我要执行命令的终端是在 Vim 中使用 :term 命令启动的终端。
我正在寻找:term rg -i PATTERN哪个会运行异步而不阻塞vim。也可以并行运行多个命令。所以终端是一个缓冲区,我可以简单地将结果拉到我的工作文档/缓冲区中。
:term rg -i PATTERN