Skip to content

Commit ca62254

Browse files
committed
Make ftdetect play nice with vanilla VIM
Per `:help ftdetect`, VIM wraps these in an augroup anyway. Neovim is okay with nesting groups, but vanilla VIM doesn't play along so happily.
1 parent 784794d commit ca62254

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

ftdetect/tridactyl.vim

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
augroup VimTridactyl
2-
autocmd!
3-
augroup END
4-
5-
autocmd VimTridactyl BufNewFile,BufRead *tridactylrc setf tridactyl
6-
autocmd VimTridactyl FileType tridactyl setlocal commentstring=\"\ %s
7-
8-
" vim: set noet ts=4 sw=4 sts=4:
1+
" vint: -ProhibitAutocmdWithNoGroup
2+
autocmd BufNewFile,BufRead *tridactylrc setf tridactyl
3+
autocmd FileType tridactyl setlocal commentstring=\"\ %s

0 commit comments

Comments
 (0)