diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-23 09:20:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-23 09:20:35 +1200 |
commit | cedcc07facc8d1bf95751135b869bb491e1899c8 (patch) | |
tree | 247ad5bab8e108d9c8eb39d9454e7f2422264484 | |
parent | Move my after ftplugin for Markdown into main (diff) | |
download | dotfiles-cedcc07facc8d1bf95751135b869bb491e1899c8.tar.gz dotfiles-cedcc07facc8d1bf95751135b869bb491e1899c8.zip |
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.
-rw-r--r-- | vim/after/ftplugin/html.vim | 5 | ||||
-rw-r--r-- | vim/ftplugin/markdown.vim | 2 |
2 files changed, 0 insertions, 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[^\\]]\\+\\]: |