diff options
author | Wu, Zhenyu <wuzhenyu@ustc.edu> | 2024-04-08 20:53:19 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-08 21:45:40 +0200 |
commit | 7005b7ee7f282b24378c2a844366cb8616cad5d7 (patch) | |
tree | 7c57d26b41f359653d956b5fa7377aeb5242864c /runtime/filetype.vim | |
parent | fc21b6437ce91368c2d53437177083b8bc375720 (diff) |
patch 9.1.0276: No pandoc syntax supportv9.1.0276
Problem: No pandoc syntax support
Solution: Add pandoc syntax and compiler plugins
(Wu, Zhenyu, Konfekt)
closes: #14389
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r-- | runtime/filetype.vim | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index b3f3c4d223..8e96e15f2a 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1322,7 +1322,12 @@ au BufNewFile,BufRead *.mv,*.mpl,*.mws setf maple au BufNewFile,BufRead *.map setf map " Markdown -au BufNewFile,BufRead *.markdown,*.mdown,*.mkd,*.mkdn,*.mdwn,*.md setf markdown +au BufNewFile,BufRead *.markdown,*.mdown,*.mkd,*.mkdn,*.mdwn,*.md + \ if exists("g:filetype_md") | + \ exe "setf " . g:filetype_md | + \ else | + \ setf markdown | + \ endif " Mason au BufNewFile,BufRead *.mason,*.mhtml,*.comp setf mason @@ -2860,6 +2865,9 @@ au BufNewFile,BufRead */etc/hostname.* call s:StarSetf('config') " Pam conf au BufNewFile,BufRead */etc/pam.d/* call s:StarSetf('pamconf') +" Pandoc +au BufNewFile,BufRead,BufFilePost *.pandoc,*.pdk,*.pd,*.pdc setf pandoc + " Printcap and Termcap au BufNewFile,BufRead *printcap* \ if !did_filetype() |