Bram recently fixed :diffoff! https://groups.google.com/forum/#!topic/vim_dev/h1nREhhF7mY
That reminds me of a diff frustration. Suppose I have two files expected.txt and output.txt, each over 1000 lines. Running a test program creates the second file, and it should be the same as the first. I use something like the following to diff: :tabe expected.txt :vert diffs output.txt When I last viewed those files, I may have exited with the cursor on the last line. I use the code from ":help restore-cursor" to restore the cursor position, so the diff shows the cursor at the bottom. Problem: If the only difference is near the top, all I see in the left and right windows is a single line representing the folded "no difference" text. To be sure there is no difference, I have to gg in *both* windows. I could use [c in just one window and take the fact that nothing happens as an indication that the two files are identical, but that is not satisfying. It also fails to show the diff if the only difference is that the file in the other window has had a new line inserted at the top. Using zb is the same: it does not show the diff if the only difference is that the file in the other window has had a new line inserted at the top. Can something be done to give a more convincing display of whether the two buffers have a difference? The problem is that Vim's logic for positioning the top line of the window shows the minimum amount of text in the above scenario (possibly just a single fold line). It would be nice if some extra logic said "this is a diff, so if there is a difference, scroll *both* windows down as much as possible". John -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
