Skip to content

Commit

Permalink
Remove explicit augroup handling in ftdetect
Browse files Browse the repository at this point in the history
It is both pointless and introduces bugs, as Vim opens an augroup
filetypedetect context before running ftdetect scripts anyway and other
ftdetect scripts rely on being inside such a context, so by leaving it
at the end of our ftdetect script we break them.

Fixes vimoutliner#185
  • Loading branch information
smheidrich committed Mar 10, 2023
1 parent 6d849ac commit 8b564d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ftdetect/votl.vim
Expand Up @@ -19,8 +19,6 @@
"# Steve Litt, slitt@troubleshooters.com, http://www.troubleshooters.com
"# #######################################################################

augroup filetypedetect
au! BufRead,BufNewFile *.otl setfiletype votl
au! BufRead,BufNewFile *.oln setfiletype xoutliner
augroup END
au! BufRead,BufNewFile *.otl setfiletype votl
au! BufRead,BufNewFile *.oln setfiletype xoutliner

0 comments on commit 8b564d9

Please sign in to comment.