in reply to Vim: Warning: Output is not to a terminal

Use diff, not vimdiff.

Alternatively you can use expect to capture output to the terminal.

  • Comment on Re: Vim: Warning: Output is not to a terminal

Replies are listed 'Best First'.
Re^2: Vim: Warning: Output is not to a terminal
by jeanluca (Deacon) on Jun 22, 2010 at 08:52 UTC
    diff is not the same thing as vimdiff. Is there, for example, no way to start the command in a new shell/terminal ?
      I might have misunderstood what you try to accomplish.

      Since you've used backticks, I assumed you want to obtain the output from vimdiff - which doesn't work that way, because vim talks to the terminal directly instead of printing to STDOUT. That's why I suggested diff instead, which does print to STDOUT.

      If you want to spawn an interactive vim, just use system - works fine here.