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

Revert "refactor: Execute autocmd in group scope" #573

Merged
merged 2 commits into from
Feb 22, 2022

Conversation

StarryLeo
Copy link
Contributor

This reverts commit 18ed14a.

Do not need augroup for ftdetect, see :h ftdetect, and
filetypedetect may is a autocmd group name.

This reverts commit 18ed14a.

Do not need "augroup" for "ftdetect", see :h ftdetect, and
"filetypedetect" may is a autocmd group name.
Copy link
Member

@alerque alerque left a comment

Choose a reason for hiding this comment

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

Thanks, I recently learned this lesson the hard way on another project.

The only thing is this is going to throw a lint error from vint. We'll need to add a comment to tell the linter to ignore that rule for this file. Here is an example:

https://github.com/sile-typesetter/vim-sile/blob/master/ftdetect/sile.vim#L7

@alerque alerque merged commit 95e9084 into preservim:master Feb 22, 2022
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