From 85d5c47d747b05668df688bc44ac827864740db3 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 4 Jun 2018 18:17:32 +1200 Subject: 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. --- vim/after/ftplugin/html/lint.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vim/after/ftplugin/html/lint.vim') diff --git a/vim/after/ftplugin/html/lint.vim b/vim/after/ftplugin/html/lint.vim index c0fdc44f..21f2a72c 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 -- cgit v1.2.3 From c51af5740bca34da385ef807580f820313b6c358 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 4 Jun 2018 19:14:38 +1200 Subject: Use case-insensitive Vim ==# --- vim/after/ftplugin/html/lint.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim/after/ftplugin/html/lint.vim') diff --git a/vim/after/ftplugin/html/lint.vim b/vim/after/ftplugin/html/lint.vim index 21f2a72c..b24b18c9 100644 --- a/vim/after/ftplugin/html/lint.vim +++ b/vim/after/ftplugin/html/lint.vim @@ -4,7 +4,7 @@ if exists('b:did_ftplugin_html_lint') || &compatible finish endif -if &filetype == 'markdown' +if &filetype ==# 'markdown' finish endif let b:did_ftplugin_html_lint = 1 -- cgit v1.2.3