From 9a7f794665de703dd2a4724498061a849893daee Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 4 Jan 2022 19:52:53 +0100 Subject: fix(plugin): actually augroup in the ftdetect/ script is considered harmful. From Reddit: > Oh and by the way, you don't need to put augroup in an ftdetect > file: in fact, you shouldn't add it. The augroup is set up > by filetype.vim before the ftdetect scripts are sourced, > so when you run augroup END in your ftdetect script, any > ftdetect scripts that run after yours will no longer run in the > filetypedetect augroup. --- ftdetect/changes.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ftdetect/changes.vim') diff --git a/ftdetect/changes.vim b/ftdetect/changes.vim index f29a98b..69cf3f9 100644 --- a/ftdetect/changes.vim +++ b/ftdetect/changes.vim @@ -1,3 +1 @@ -augroup filetypedetect - au BufRead,BufNewFile *.changes :set filetype=changes -augroup END +au BufRead,BufNewFile *.changes :set filetype=changes -- cgit