From cedcc07facc8d1bf95751135b869bb491e1899c8 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 23 May 2019 09:20:35 +1200 Subject: Remove HTML ftplugin import from Markdown ftplugin I never liked this much. Removing it from my own copy of the ftplugin allows me to remove my working around it in the after script. --- vim/after/ftplugin/html.vim | 5 ----- vim/ftplugin/markdown.vim | 2 -- 2 files changed, 7 deletions(-) diff --git a/vim/after/ftplugin/html.vim b/vim/after/ftplugin/html.vim index 8b390528..93845a80 100644 --- a/vim/after/ftplugin/html.vim +++ b/vim/after/ftplugin/html.vim @@ -1,8 +1,3 @@ -" Don't load if the buffer is not actually HTML (e.g. Markdown) -if &filetype !=# 'html' - finish -endif - " Spellcheck documents we're actually editing (not just viewing) if &modifiable && !&readonly setlocal spell diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim index e59e661b..8d90aa67 100644 --- a/vim/ftplugin/markdown.vim +++ b/vim/ftplugin/markdown.vim @@ -7,8 +7,6 @@ if exists("b:did_ftplugin") finish endif -runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim - setlocal comments=fb:*,fb:-,fb:+,n:> commentstring=>\ %s setlocal formatoptions+=tcqln formatoptions-=r formatoptions-=o setlocal formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^[-*+]\\s\\+\\\|^\\[^\\ze[^\\]]\\+\\]: -- cgit v1.2.3