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

Vint warns if there is no augroup in ftdetect scripts #359

Open
przepompownia opened this issue Mar 21, 2020 · 1 comment
Open

Vint warns if there is no augroup in ftdetect scripts #359

przepompownia opened this issue Mar 21, 2020 · 1 comment

Comments

@przepompownia
Copy link

Both manual mention that there are no need to wrap commands by an additional autocmd.

@telemachus
Copy link

telemachus commented Feb 13, 2022

To stay this even more strongly, I think that :help ftdetect implies that scripts should not wrap autocommands in an augroup in a ftdetect file.

There have definitely been problems when people follow the false warning. E.g, fatih/vim-go#1645 mentioned in #264.

Would you be open to pull requests for these two changes?

  • Remove warning about missing augroup in ftdetect scripts.
  • Add a warning if someone (mistakenly) uses an augroup in a ftdetect script? (As suggested by @thinca in the issue above.)

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

No branches or pull requests

2 participants