-
Notifications
You must be signed in to change notification settings - Fork 1
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
E474: Invalid argument: diffopt+=internal,algorithm:patience on Vim 8.1 on MacOS #2
Comments
Hi, found this after searching for the same issue. I'll write down my findings here for anyone else searching about this problem.
If you look at This other issue I found has the same root cause:
Apple removed the Now why would Apple want to remove xdiff? Because of https://github.com/vim/vim/blob/master/src/xdiff/COPYING:
What's the solution then? I have this in my vimrc now. Since this issue is specific to the default vim distributed on Mac, I've decided to just hard code that condition. Also handles the issue of if has('mac') && $VIM == '/usr/share/vim'
set diffopt-=internal
elseif has('patch-8.1.0360')
set diffopt+=algorithm:patience
endif I only ran into this issue while using |
@chaoren Thanks a ton for the research! 😄 This will fix an annoyance that has been bugging me for over a year now! |
See this comment, for explanation: agude/dotfiles#2 (comment) Other places mentioned: thoughtbot/dotfiles#655
Here is the error:
Here is the version info:
I believed
patch-8.1.0360
was the right one to check. Perhaps not?Originally added to Vim here: vim/vim#2732
The text was updated successfully, but these errors were encountered: