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 7691077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:32:32+00:00 2026-05-31T20:32:32+00:00

When editing documents I always stick to a certain line width of max 80

  • 0

When editing documents I always stick to a certain line width of max 80 or 150 characters, depends what I am writing (code, text, etc.). If I change only a little the whole paragraph will shift and hence multiple lines are now in different order to optimal fit for the given line width. How do I diff this to see the actual real change an not the rewrapping artifacts?

Example, textwidth=30:
enter image description here

The actual changes are rather tiny:

  • line 9 insert: “Now I change a little”
  • line 15 insert: “Fill in here something and write totally new stuff with much more lines. “
  • line 18 change: s/Duis/TYPO/

The fact that I use (g)vimdiff here is of no matter, if other software can accomplish the desired diff.

Of course software is designed to wrap automatically when text reaches window borders, so I also tried to use just line breaks in the end of a paragraph. The reason why this is not good is, that automatically diffs are line based, and for small changes in paragraphs I get the whole line, meaning then the whole paragraph as diff update :(.

  • 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-31T20:32:33+00:00Added an answer on May 31, 2026 at 8:32 pm

    GNU wdiff does a word-by-word diff, not treating spaces and new lines any differently. One can even find vim syntax files for it (e.g. here).

    $ cat file1
    Lorem ipsum dolor sit amet, consectetur
    adipiscing elit. Aenean vel molestie
    nulla. Pellentesque placerat lacus vel
    eros malesuada tristique. Nulla vitae
    volutpat justo. Donec est mauris,
    
    $ cat file2
    Lorem amet, consectetur adipiscing some
    inserted text! elit. Aenean vel molestie
    nulla. Pellentesque placerat lacus vel
    eros malesuada replacement. Nulla vitae
    volutpat justo. Donec est mauris,
    
    $ wdiff file1 file2
    Lorem [-ipsum dolor sit-] amet, consectetur
    adipiscing {+some inserted text!+} elit. Aenean vel molestie
    nulla. Pellentesque placerat lacus vel
    eros malesuada [-tristique.-] {+replacement.+} Nulla vitae
    volutpat justo. Donec est mauris
    

    ([- ... -] is deleted text, {+ ... +} is inserted text).

    (There are other diff programs that do a similar thing: e.g. adiff, and maybe some of the ones listed in https://stackoverflow.com/questions/12625/best-diff-tool)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know any cool text editing program for easy code translation? I have
I am writing a Web application that has a user interface for editing documents.
I'm writing a document editing web service, in which documents can be edited via
I need a JComponent thad enables editing xml documents so I can embed it
I need free tool for editing and merging 2 XML documents. Do you know
I'm editing a text-document styled on its own way of which Emacs doesn't recognize
Editing a RichTextBox control's text (more specifically, modifying selection font/color) programmatically seems to be
I have just started using Emacs for the specific purpose of editing latex documents.
Does anyone know a way to display code in Microsoft Word documents that preserves
Trying to get a form for adding, editing and removing embedded documents working as

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.