Open przepompownia opened 4 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?
augroup
in ftdetect scripts.augroup
in a ftdetect script? (As suggested by @thinca in the issue above.)
Both manual mention that there are no need to wrap commands by an additional autocmd.