Skip to content

Fix overriding the default filetype detection#206

Merged
xuhdev merged 1 commit intoeditorconfig:masterfrom
a5ob7r:prefer_default_ftdetectiion
Jan 20, 2023
Merged

Fix overriding the default filetype detection#206
xuhdev merged 1 commit intoeditorconfig:masterfrom
a5ob7r:prefer_default_ftdetectiion

Conversation

@a5ob7r
Copy link
Contributor

@a5ob7r a5ob7r commented Jan 20, 2023

Vim recognizes the filetype of .editorconfig as editorconfig, not dosini, by default since patch-9.0.1167. It's a superset of the dosini syntax. However editorconfig.vim always overrides it with dosini. To fix this, set the filetype only if Vim hasn't set it yet.

Vim recognizes the filetype of .editorconfig as editorconfig, not
dosini, by default since patch-9.0.1167. It's a superset of the dosini
syntax. However editorconfig.vim always overrides it with dosini. To fix
this, set the filetype only if Vim hasn't set it yet.
Copy link
Member

@xuhdev xuhdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@xuhdev xuhdev merged commit 39bd110 into editorconfig:master Jan 20, 2023
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 this pull request may close these issues.

2 participants