aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/html
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/ftplugin/html')
-rw-r--r--vim/after/ftplugin/html/lint.vim6
-rw-r--r--vim/after/ftplugin/html/tidy.vim6
-rw-r--r--vim/after/ftplugin/html/url_link.vim6
3 files changed, 15 insertions, 3 deletions
diff --git a/vim/after/ftplugin/html/lint.vim b/vim/after/ftplugin/html/lint.vim
index c0fdc44f..b24b18c9 100644
--- a/vim/after/ftplugin/html/lint.vim
+++ b/vim/after/ftplugin/html/lint.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_lint') || &compatible
finish
endif
+if &filetype ==# 'markdown'
+ finish
+endif
let b:did_ftplugin_html_lint = 1
" Initialise undo variable if not already done
diff --git a/vim/after/ftplugin/html/tidy.vim b/vim/after/ftplugin/html/tidy.vim
index 519a7cd6..6e612feb 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
diff --git a/vim/after/ftplugin/html/url_link.vim b/vim/after/ftplugin/html/url_link.vim
index 85e9d719..2e600b5e 100644
--- a/vim/after/ftplugin/html/url_link.vim
+++ b/vim/after/ftplugin/html/url_link.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_url_link') || &compatible
finish
endif
+if &filetype ==# 'markdown'
+ finish
+endif
let b:did_ftplugin_html_url_link = 1
if exists('b:undo_ftplugin')
let b:undo_ftplugin = b:undo_ftplugin