Use --wait
for both twdiff
and edit
. I use this extensively with vim, as well as svn/git: without those flags, the temp files are immediately removed and diff
ing or editing them causes errors as the original file can't be found.
It also lets you cycle through multiple files and the next file won't be opened until the last one has been closed.
See twdiff -?
or edit -?
for more details.