0

我想从 vim 使用 bash 进程替换,我该怎么做?我需要我可以输入如下内容:

:tabe `<(git show mybranch:mydir/myfile.txt)`

该特定表格无效。如何让 vimgit show mybranch:mydir/myfile.txt在新选项卡中打开命令的输出。

4

2 回答 2

5

用于:tabe打开新标签并

:r !cmd

cmd在光标位置插入输出

使用

 :tabe `cmd`

将命名使用命令输出创建的选项卡

于 2014-03-29T11:00:26.823 回答
1
:tabe|r!git show mybranch:mydir/myfile.txt

或者

:tabe|%!git show mybranch:mydir/myfile.txt
于 2014-03-29T11:29:15.593 回答