0

I tried vim -d <(ffprobe one.mp4 2>&1) <(ffprobe two.mp4 2>&1) to see the difference between the two videos' codecs etc., but vim doesn't show anything when it opens, just an empty split screen and this error

"/dev/fd/12" [Permission Denied]

How can I conveniently use vim diff to compare two command outputs?

4
  • In zsh, using =() substitution worked. Not too clear why. Commented Jan 9, 2024 at 15:28
  • 1
    Works for me vimdiff <( ffprobe 'Coasts.mp4' 2>&1 ) <( ffprobe 'Deserts and Grasslands.mp4' 2>&1 ) Commented Jan 9, 2024 at 15:32
  • @ChrisDavies oh, so looks like vimdiff but not vim -d works Commented Jan 9, 2024 at 15:34
  • 1
    vim -d and vimdiff both work for me here Commented Jan 9, 2024 at 15:34

0

You must log in to answer this question.