-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Error detected while processing ~/.vimrc: line 176: E474: Invalid argument: diffopt+=vertical #655
Comments
The same error. |
Same here. Did anyone ever find a fix to this? |
@ashwinvidiyala I identified the problem and wrote about it here: https://www.micahsmith.com/blog/2019/11/fixing-vim-invalid-argument-diffopt-iwhite/ In short: stock vim on Catalina does not support if &diff
set diffopt-=internal
set diffopt+=vertical
endif |
@micahjsmith Sweet! Thanks :) |
Thanks, it's working for me. |
Following https://www.micahsmith.com/blog/2019/11/fixing-vim-invalid-argument-diffopt-iwhite/, which I found here: thoughtbot/dotfiles#655
Vim on Catalina doesn't suuport `diffopt=internal` thoughtbot#655
Stock vim on Catalina (and, apparently, Big Sur) does not support diffopt=internal even though the default options include internal. Thus :set diffopt+=vertical is equivalent to :set diffopt=internal,filler,vertical which is an error because internal is not supported. One solution is to modify your .vimrc as follows: if &diff set diffopt-=internal set diffopt+=vertical endif The issue (and fix) is described on these websites: thoughtbot#655 https://www.micahsmith.com/blog/2019/11/fixing-vim-invalid-argument-diffopt-iwhite/
Stock vim on Catalina (and, apparently, Big Sur) does not support diffopt=internal even though the default options include internal. Thus :set diffopt+=vertical is equivalent to :set diffopt=internal,filler,vertical which is an error because internal is not supported. One solution is to modify your .vimrc as follows: if &diff set diffopt-=internal set diffopt+=vertical endif The issue (and fix) is described on these websites: thoughtbot#655 https://www.micahsmith.com/blog/2019/11/fixing-vim-invalid-argument-diffopt-iwhite/
See this comment, for explanation: agude/dotfiles#2 (comment) Other places mentioned: thoughtbot/dotfiles#655
Stock vim on Catalina (and, apparently, Big Sur) does not support diffopt=internal even though the default options include internal. Thus :set diffopt+=vertical is equivalent to :set diffopt=internal,filler,vertical which is an error because internal is not supported. One solution is to modify your .vimrc as follows: if &diff set diffopt-=internal set diffopt+=vertical endif The issue (and fix) is described on these websites: thoughtbot#655 https://www.micahsmith.com/blog/2019/11/fixing-vim-invalid-argument-diffopt-iwhite/
Stock vim on Catalina (and, apparently, Big Sur) does not support diffopt=internal even though the default options include internal. Thus :set diffopt+=vertical is equivalent to :set diffopt=internal,filler,vertical which is an error because internal is not supported. One solution is to modify your .vimrc as follows: if &diff set diffopt-=internal set diffopt+=vertical endif The issue (and fix) is described on these websites: thoughtbot#655 https://www.micahsmith.com/blog/2019/11/fixing-vim-invalid-argument-diffopt-iwhite/
Vim on Catalina doesn't suuport `diffopt=internal` thoughtbot#655
Hi there,
I'm running Vim 8.1 on macOS Catalina. When I open Vim, I always get this error message.
Removing the "+" seemed to have silenced the error, but, because I'm a Vim neophyte I'm not convinced that this is the correct solution.
The text was updated successfully, but these errors were encountered: