From 0ef08f71f6325e24ede2195f83c6d5fd02bb6a8d Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Tue, 6 Oct 2015 13:26:05 +0200 Subject: [PATCH] Use just markdown as filetype. . for multiple filetypes does not work with autocmd. There seems to be no known workaround: http://vi.stackexchange.com/questions/4893 This is a breaking change as it would break user scripts who used autocmd, but we have already broken them with this compound filetype, so let's just finish the job. Semi-reverses: https://github.com/plasticboy/vim-markdown/pull/217 --- ftdetect/markdown.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftdetect/markdown.vim b/ftdetect/markdown.vim index fab3ab0..611ecaa 100644 --- a/ftdetect/markdown.vim +++ b/ftdetect/markdown.vim @@ -1,3 +1,3 @@ " markdown filetype file -au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn} set filetype=mkd.markdown -au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn}.{des3,des,bf,bfa,aes,idea,cast,rc2,rc4,rc5,desx} set filetype=mkd.markdown +au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn} set filetype=markdown +au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn}.{des3,des,bf,bfa,aes,idea,cast,rc2,rc4,rc5,desx} set filetype=markdown -- 2.39.2