On Sunday, August 28, 2016 at 8:05:29 PM UTC+10, toothpik wrote:
>> :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.
>
> there's your problem right there

What are you saying? That I should never exit a file with the cursor at the 
end? Or I should not use the documented restore-cursor code?

It is a real problem that Vim can mislead the user into thinking there is no 
difference, when in fact a new line has been inserted at the top of the other 
window. Just scrolling one window to the top is not enough because unless you 
gg in *both* windows, you have no idea whether the files are identical or not.

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.

Raspunde prin e-mail lui