Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6701271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:54:51+00:00 2026-05-26T06:54:51+00:00

In my project regression settings, output file have statement like diff between foo.txt and

  • 0

In my project regression settings, output file have statement like

    "diff between foo.txt and bar.txt found" 

Now I need to take vimdiff between foo.txt and bar.txt. Can I do it from output file opened in vim only?

currently I need to first open my output file in vim. Then I need to select line specifying diff found. after it return to shell. then take vimdiff b/w this files.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:54:52+00:00Added an answer on May 26, 2026 at 6:54 am

    If you had no file opened or an unmodified buffer:

     :edit file1.txt
     :vert diffsplit file2.txt
    

    To open diffs in a new tab,

     :tabedit file1.txt
     :vert diffsplit file2.txt
    

    would be very convenient


    To get things automated, I’d consider

    diffprogram | grep -w '^diff between' | grep 'found$' | 
    while read diff between file1 and file2 found;
    do
        gvim -d "$file1" "$file2"
    done
    

    Notes:

    • doesn’t work for filenames with speciall characters (notably whitespace)
    • To open all these vims simultaneously, just add &: gvim -d "$file1" "$file2"&

    You can also get all diffs to open in separate tabs in a single vim:

        gvim --servername GVIM --remote-silent +"tabedit $file1" +"vert diffsplit $file2"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Project 1: Foo Project 2: Bar If Foo depends on Bar, and both are
I'm looking to unit testing as a means of regression testing on a project.
My project has both client and server components in the same solution file. I
The project is ASP.NET 2.0, I have never been able to reproduce this myself,
The title pretty much says it all. I have a project that for political
Project file here if you want to download: http://files.me.com/knyck2/918odc So I am working on
Project is C#. So I have a bunch of multithreaded code that is designed
Project Structure I have a silverlight project SLProj, that references a silverlight class library
I have a project converted from .NET 1.1 to 3.5 being developed in 2008.
For my project, due to the long build and regression times, it is extremely

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.