Skip to content

Commit f868afa

Browse files
committed
Revert "refactor: Execute autocmd in group scope"
This reverts commit 18ed14a. Do not need "augroup" for "ftdetect", see :h ftdetect, and "filetypedetect" may is a autocmd group name.
1 parent b4dc23e commit f868afa

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

ftdetect/markdown.vim

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
augroup VimMarkdown
2-
autocmd!
3-
augroup END
4-
51
if !has('patch-7.4.480')
62
" Before this patch, vim used modula2 for .md.
7-
au! VimMarkdown filetypedetect BufRead,BufNewFile *.md
3+
au! filetypedetect BufRead,BufNewFile *.md
84
endif
95

106
" markdown filetype file
11-
au VimMarkdown BufRead,BufNewFile *.{md,mdx,mdown,mkd,mkdn,markdown,mdwn} setfiletype markdown
12-
au VimMarkdown BufRead,BufNewFile *.{md,mdx,mdown,mkd,mkdn,markdown,mdwn}.{des3,des,bf,bfa,aes,idea,cast,rc2,rc4,rc5,desx} setfiletype markdown
7+
au BufRead,BufNewFile *.{md,mdx,mdown,mkd,mkdn,markdown,mdwn} setfiletype markdown
8+
au BufRead,BufNewFile *.{md,mdx,mdown,mkd,mkdn,markdown,mdwn}.{des3,des,bf,bfa,aes,idea,cast,rc2,rc4,rc5,desx} setfiletype markdown

0 commit comments

Comments
 (0)