diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2019-12-31 14:08:15 +0100 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-12-31 14:08:15 +0100 | 
| commit | a60e299a3ce55b4a84a48b240d35c84e6e5a8746 (patch) | |
| tree | 6d45e51ff3f7889ffc7a4499af0034806ffb7397 /ftdetect | |
| parent | b8a5504021e0d21310bc603855ac8107828b5759 (diff) | |
| download | vim-polyglot-a60e299a3ce55b4a84a48b240d35c84e6e5a8746.tar.gz vim-polyglot-a60e299a3ce55b4a84a48b240d35c84e6e5a8746.zip | |
Switch back to plasticboy for markdown
Diffstat (limited to 'ftdetect')
| -rw-r--r-- | ftdetect/polyglot.vim | 11 | 
1 files changed, 9 insertions, 2 deletions
| diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index e2452071..cd389fdd 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -816,8 +816,15 @@ endif  if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'markdown') == -1    augroup filetypedetect -  " markdown, from markdown.vim in gabrielelana/vim-markdown -au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn} set filetype=markdown +  " markdown, from markdown.vim in plasticboy/vim-markdown +if !has('patch-7.4.480') +    " Before this patch, vim used modula2 for .md. +    au! filetypedetect BufRead,BufNewFile *.md +endif + +" markdown filetype file +au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn} setfiletype markdown +au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn}.{des3,des,bf,bfa,aes,idea,cast,rc2,rc4,rc5,desx} setfiletype markdown    augroup end  endif | 
