有时在使用vimdiff
编辑三个文件时,我想从一个文件复制一个文件到另外两个文件。通常这会来完成,像这样:diffput到多个缓冲区?
:diffput 2
:diffput 3
然而,:help diffput
这样说:
*:diffpu* *:diffput* *E793*
:[range]diffpu[t] [bufspec]
这让我好奇bufspec
是否允许你指定一个以上的缓冲器。我尝试使用文档,然后只是猜测,但没有运气。
:help bufspec
:diffput 2,3
:diffput 2 3
是否可以在diffput
命令中指定多个缓冲区?
没有。答案在':exec'helpg bufspec'|帮助clast'。 – glts