Vimjas / vint

Fast and Highly Extensible Vim script Language Lint implemented in Python.
MIT License
703 stars 33 forks source link

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

Open przepompownia opened 4 years ago

przepompownia commented 4 years ago

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

telemachus commented 2 years ago

To say 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, https://github.com/fatih/vim-go/pull/1645 mentioned in https://github.com/Vimjas/vint/issues/264.

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