-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modifications to a line are indicated differently depending on whether the line before or after was deleted #22
Comments
Which lines are indicated as added/deleted/changed are depending on the diff algorithm which vim is using. My plugin actually follows that. You can try to set different algorithms in the |
Bummer. Tried all the algorithms available and combined the different options. Nothing helped. Now this is a toy example, but I encounter this kind of diff quite often. Also tried googling for more options, but couldn't find anything. If you have any more tips based on your experience, I'd be very grateful! |
You may find some useful option of diff command which would help you and can set it using |
Thanks for the suggestion. Just tried it, but I think I prefer https://github.com/AndrewRadev/linediff.vim especially because I can't diff side-by-side with spotdiff(or did I miss anything?). Regarding my original problem, I think I would need two diff blocks, one for the deletion of |
FYI, this is a sample code to implement a line-by-line comparison in vimdiff.
|
Consider the following:
When I change it to
the x is indicated as added. However, when I change it to:
the whole line with the x is indicated as changed.
It's the same kind of change and imho should be indicated the same, but because a line was deleted before and not after, it isn't. Is there anything you can do about that?
The text was updated successfully, but these errors were encountered: