-
Notifications
You must be signed in to change notification settings - Fork 139
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
Doesn't respect /.editorconfig #238
Comments
This seems very related to editorconfig/editorconfig#465 . Until a decision is made on that issue, this could be implemented as a plug-in option. However, core behaviour has to be unchanged when that option is not set. I personally think handling this use case via the above-linked issue would be best, so I suggest you voice your support in that issue. |
I strongly disagree that this has to wait for the This is a clear bug as it differs from the The reason why I absolutely need it is that at my company |
And it's actually more funny - |
Oh, it wasn't clear to me this was a report of existing behaviour different from editorconfig-core-c. Thanks for the additional detail! |
As for implementation, I am really not happy about the I wonder if there really is no builtin function to put a / at the end of a path if there is none yet. Or maybe the better way is to not use |
On systems where I also need to edit files outside my home a lot, I made
/.editorconfig
a symlink to my homedir's.editorconfig
file.This, however, does not work because of this line in
autoload/editorconfig_core/ini.vim
:The reason is that for
/.editorconfig
, this produces//
.Changing it to only append the slash if there is none already fixes it:
Not sure if that's the greatest solution, but it definitely is one that works.
The text was updated successfully, but these errors were encountered: