Skip to content
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

Open
jkereako opened this issue Jan 9, 2020 · 5 comments · Fixed by barretlee/dotfiles-1#1

Comments

@jkereako
Copy link

jkereako commented Jan 9, 2020

Hi there,

I'm running Vim 8.1 on macOS Catalina. When I open Vim, I always get this error message.

Error detected while processing ~/.vimrc: line 176: E474: Invalid argument: diffopt+=vertical Press ENTER or type command to continue

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.

@jimrpy
Copy link

jimrpy commented Jan 30, 2020

The same error.

@ashwinvidiyala
Copy link
Contributor

Same here. Did anyone ever find a fix to this?

@micahjsmith
Copy link

micahjsmith commented Mar 27, 2020

@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 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

@ashwinvidiyala
Copy link
Contributor

@micahjsmith Sweet! Thanks :)

PMCorbett pushed a commit to PMCorbett/dotfiles-1 that referenced this issue Apr 23, 2020
PMCorbett pushed a commit to PMCorbett/dotfiles-1 that referenced this issue Jun 15, 2020
@pawan2901
Copy link

Thanks, it's working for me.

kevin-j-m added a commit to kevin-j-m/dotfiles that referenced this issue Dec 28, 2020
schneiderderek added a commit to schneiderderek/dotfiles that referenced this issue Feb 3, 2021
ronanduddy added a commit to ronanduddy/dotfiles that referenced this issue Mar 15, 2021
gambaroff added a commit to gambaroff/dotfiles-1 that referenced this issue Sep 7, 2021
Vim on Catalina doesn't suuport `diffopt=internal`
thoughtbot#655
jamesiain added a commit to jamesiain/rcm-dotfiles that referenced this issue Dec 31, 2021
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/
jamesiain added a commit to jamesiain/rcm-dotfiles that referenced this issue Mar 27, 2022
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/
craigmac added a commit to craigmac/vimfiles that referenced this issue Apr 22, 2022
See this comment, for explanation:
agude/dotfiles#2 (comment)

Other places mentioned:
thoughtbot/dotfiles#655
jamesiain added a commit to jamesiain/rcm-dotfiles that referenced this issue Nov 9, 2022
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/
jamesiain added a commit to jamesiain/rcm-dotfiles that referenced this issue Jan 10, 2023
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/
schneiderderek added a commit to schneiderderek/dotfiles that referenced this issue Jul 7, 2023
PMCorbett pushed a commit to PMCorbett/dotfiles-1 that referenced this issue Jul 13, 2023
gambaroff added a commit to gambaroff/dotfiles-1 that referenced this issue Oct 1, 2024
Vim on Catalina doesn't suuport `diffopt=internal`
thoughtbot#655
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants