vint icon indicating copy to clipboard operation
vint copied to clipboard

ProhibitAutocmdWithNoGroup: Ignore for buffer-specific autocommands

Open somini opened this issue 7 years ago • 2 comments

This rule should be relaxed to allow for defining autocmd outside augroup, as long as the <buffer> option is set.

This is used for example to create filetype-specific autocommands by placing them in a filetype/&filetype/commands.vim file or similar.

somini avatar Jul 02 '18 17:07 somini

See https://github.com/Kuniwak/vint/blob/172b1105b288ac0c85448534d520213d24fe78d3/vint/linting/policy/prohibit_autocmd_with_no_group.py#L35-L42

somini avatar Jul 02 '18 17:07 somini

It should also allow with ++once.

natebosch avatar Oct 21 '19 17:10 natebosch