2

Oftentimes there are gaps in a side-by-side differential. That is some lines were added, some were removed. As I currently see it, ediff does not fill this gap by default. Thus, vertical alignment between the two compared buffers is non-existent even if scrolled together. Does anybody have a recipe to achieve such filling (potentially with newlines and/or filler characters)?

Examples


GUI

enter image description here

TUI (vimdiff)

  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod                                                    |  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At                                                     |  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,                                                   |  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  -----------------------------------------------------------------------------------------------------------------------------------|  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,                                                   
  -----------------------------------------------------------------------------------------------------------------------------------|  no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit                                                      
  -----------------------------------------------------------------------------------------------------------------------------------|  amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut                                                       
  no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit                                                      |  no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit
  amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut                                                       |  amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
  labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam                                                    |  labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam
  et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata                                                       |  et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
  sanctus est Lorem ipsum dolor sit amet.                                                                                            |  sanctus est Lorem ipsum dolor sit amet.
                                                                                                                                     |  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod                                                    |  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At                                                     |  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,                                                   |  -----------------------------------------------------------------------------------------------------------------------------------
  no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit                                                      |  -----------------------------------------------------------------------------------------------------------------------------------
  amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut                                                       |  -----------------------------------------------------------------------------------------------------------------------------------
  labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam                                                    |  labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam
  et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata                                                       |  et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
  sanctus est Lorem ipsum dolor sit amet.                                                                                            |  sanctus est Lorem ipsum dolor sit amet.

P.S. So, in fact, looking for vimdiff-like solution to ediff.

closed as unclear what you're asking by Drew, zck, Dan Mar 13 '17 at 15:14

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • The question sure would be a lot more entertaining if there were a screenshot . . . ., and it might also motivate someone to try and find a solution -- especially if they could duplicate what you are seeing. – lawlist Mar 10 '17 at 15:32
  • 1
    @lawlist, easy... – Alexander Shukaev Mar 10 '17 at 15:39
  • Sorry, but I for one do not understand the question. Wrt the screenshot, just what is it that you are asking? What "gaps" are you talking about? What do you want ediff to do differently? – Drew Mar 10 '17 at 16:12
  • @Drew, have you seen the vimdiff example? – Alexander Shukaev Mar 10 '17 at 16:21
  • 1
    I believe the key requirement here is that the bits of the text which are identical on both sides should (always) appear at the same vertical position on each side (which necessitates some kind of vertical padding on one side or the other, whenever there is a difference which has fewer lines on one of the sides). – phils Mar 10 '17 at 21:38

Browse other questions tagged or ask your own question.