From: Ciro Santilli Date: Tue, 6 Oct 2015 11:26:05 +0000 (+0200) Subject: Use just markdown as filetype. X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/0ef08f71f6325e24ede2195f83c6d5fd02bb6a8d?hp=--cc 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 --- 0ef08f71f6325e24ede2195f83c6d5fd02bb6a8d 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