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

Remove augroup #39

Merged
merged 1 commit into from
Jul 15, 2024
Merged

Remove augroup #39

merged 1 commit into from
Jul 15, 2024

Conversation

scauligi
Copy link
Contributor

See bullet number 2 under :help ftdetect:

Note that there is no "augroup" command, this has already been done when sourcing your file.


Vim's builtin filetype.vim already sets up an augroup (filetypedetect) before it sources all ftdetect/*.vim files. Creating augroups within an ftdetect file causes the autocmds (and also the autocmds from all later plugin ftdetects) to no longer be a part of the filetypedetect augroup.

This causes later problems, such as :filetype detect not properly setting the filetype, since it only executes filetypedetect autocmds.

see bullet 2. under :h ftdetect
@Freed-Wu Freed-Wu merged commit ca7ddb6 into raimon49:master Jul 15, 2024
2 checks passed
@benknoble
Copy link

Looks like this came from #28, which I must have elected not to pull into my version.

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.

3 participants