aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/html/tidy.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-04 18:17:32 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-04 18:17:32 +1200
commit85d5c47d747b05668df688bc44ac827864740db3 (patch)
tree713a4635ba1ea6a2efcb253df2bf2b640d124c30 /vim/after/ftplugin/html/tidy.vim
parentd0fbc06579efafd175fce6a6a7b5460d55311d11 (diff)
downloaddotfiles-85d5c47d747b05668df688bc44ac827864740db3.tar.gz
dotfiles-85d5c47d747b05668df688bc44ac827864740db3.zip
Don't load my HTML ftplugins for Markdown types
The stock markdown.vim file loads in all the html.vim ftplugins too. This is probably a good idea for the stock files, but none of my HTML extension plugins are appropriate for Markdown, so exclude them.
Diffstat (limited to 'vim/after/ftplugin/html/tidy.vim')
-rw-r--r--vim/after/ftplugin/html/tidy.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/vim/after/ftplugin/html/tidy.vim b/vim/after/ftplugin/html/tidy.vim
index 519a7cd6..270e54e2 100644
--- a/vim/after/ftplugin/html/tidy.vim
+++ b/vim/after/ftplugin/html/tidy.vim
@@ -1,8 +1,12 @@
" Only do this when not done yet for this buffer
-" Also do nothing if 'compatible' enabled
+" Also do nothing if 'compatible' enabled, or if the current filetype is
+" actually markdown
if exists('b:did_ftplugin_html_tidy') || &compatible
finish
endif
+if &filetype == 'markdown'
+ finish
+endif
let b:did_ftplugin_html_tidy = 1
if exists('b:undo_ftplugin')
let b:undo_ftplugin = b:undo_ftplugin