diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2022-01-04 19:52:53 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-03-28 17:06:55 +0100 |
commit | 9a7f794665de703dd2a4724498061a849893daee (patch) | |
tree | 06620868e6af8eedc04e185955c7a1079bf9903c /ftdetect/changes.vim | |
parent | d832273f344eef13fc6e82c7a3e7f0b61988eb58 (diff) | |
download | vim-suse-changes-9a7f794665de703dd2a4724498061a849893daee.tar.gz |
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.
Diffstat (limited to 'ftdetect/changes.vim')
-rw-r--r-- | ftdetect/changes.vim | 4 |
1 files changed, 1 insertions, 3 deletions
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 |