我已经能够找到许多在另一个方向上工作的东西,但到目前为止我没有太多运气.
我希望能够read
从命令行进入新的缓冲区.我希望有类似的东西:
:r!tac % | new
Run Code Online (Sandbox Code Playgroud)
并且新缓冲区将包含输出 tac %
有没有合理的方法来做到这一点?
Ahah - 事实证明答案是使用#
,我猜这是最后使用的缓冲区(?)
:enew | r!tac #
Run Code Online (Sandbox Code Playgroud)
将读取输出tac <current buffer>
到新缓冲区.