Sometimes while editing three files using vimdiff
I want to copy a hunk from one file to both of the other two. Normally this would be accomplished like so:
:diffput 2
:diffput 3
However, :help diffput
says this:
*:diffpu* *:diffput* *E793*
:[range]diffpu[t] [bufspec]
This makes me curious whether bufspec
allows you to specify more than one buffer. I tried using the docs, and then just guessing, but no luck.
:help bufspec
:diffput 2,3
:diffput 2 3
Is it possible to specify more than one buffer in a diffput
command?
:exec 'helpg bufspec' | clast
. – Massimiliano