-
-
Notifications
You must be signed in to change notification settings - Fork 686
'guitablabel' should only be set if user hasn't set it in vimrc. #635
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
Conversation
…t already in vimrc. Otherwise keep it so user doesn't have to override it again in gvimrc
I would have thought that |
In other words, what is the problem with having to override |
That's the best practices as described in the docs (gui.txt), yes, but I think there are people who also just set gui options in vimrc using My understanding of |
Oh actually, I made a mistake in the docs then. You need to still override the |
There are (though I suspect it's very few), but they're not supposed to be doing that. I don't see the point of this unless one is desperately trying to avoid needing to have a
This would be true for options that have nothing to do with the GUI (e.g., |
Hmm, I don't really have too strong an opinion of this. I do think it's nice to respect options that was set in vimrc if the user set it somehow but yes they should have been set on the gvimrc instead. There are also other existing |
I don't have any opinion about that :) and I can revert it #637 |
This is necessary for this particular setting because MacVim unconditionally stomps on this particular option if it is set in vimrc instead of gvimrc. macvim-dev/macvim#635
If guitablabel is already set in .vimrc, don't have the MacVim default gvimrc override it. Even though Vim's docs recommend putting GUI settings in gvimrc, that's mostly for technical reasons, and MacVim should still aim to respect settings that a user has already set. This also makes it behave more similarly with Vim (you can set 'guitablabel' in vimrc or gvimrc and it would still work). This was previously done in macvim-dev#635 but reverted, but macvim-dev#899 raised this issue again. Close macvim-dev#899
Right now, the user has to override 'guitablabel' in gvimrc instead of vimrc because MacVim overrides the setting, but this change makes it so that MacVim only sets the defaults if the user hasn't set it already.