Browse Source

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
Ciro Santilli 3 years ago
parent
commit
0ef08f71f6
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      ftdetect/markdown.vim

+ 2
- 2
ftdetect/markdown.vim View File

@@ -1,3 +1,3 @@
1 1
 " markdown filetype file
2
-au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn}   set filetype=mkd.markdown
3
-au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn}.{des3,des,bf,bfa,aes,idea,cast,rc2,rc4,rc5,desx} set filetype=mkd.markdown
2
+au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn} set filetype=markdown
3
+au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn}.{des3,des,bf,bfa,aes,idea,cast,rc2,rc4,rc5,desx} set filetype=markdown

Loading…
Cancel
Save