summaryrefslogtreecommitdiffstats
path: root/ftdetect
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-12-12 16:43:09 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2019-12-12 16:43:09 +0100
commitcea0d08a062478503814e51aa21c6486a0dd1b21 (patch)
tree085f856a71019a5f9046501b9f45116286726d51 /ftdetect
parent43085dc02f34d7d54208e6e20989d4779bffe71c (diff)
downloadvim-polyglot-4.1.4.tar.gz
vim-polyglot-4.1.4.zip
Replace markdown plugin for faster onev4.1.4
Diffstat (limited to 'ftdetect')
-rw-r--r--ftdetect/polyglot.vim23
1 files changed, 14 insertions, 9 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 5ab23e80..480ea023 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -1,3 +1,15 @@
+if !exists('g:markdown_enable_spell_checking')
+ let g:markdown_enable_spell_checking = 0
+end
+
+if !exists('g:markdown_enable_input_abbreviations')
+ let g:markdown_enable_input_abbreviations = 0
+end
+
+if !exists('g:markdown_enable_mappings')
+ let g:markdown_enable_mappings = 0
+end
+
" Enable jsx syntax by default
if !exists('g:jsx_ext_required')
let g:jsx_ext_required = 0
@@ -781,15 +793,8 @@ endif
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'markdown') == -1
augroup filetypedetect
- " 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
+ " markdown, from markdown.vim in gabrielelana/vim-markdown
+au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn} set filetype=markdown
augroup end
endif