aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-23 09:20:35 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-23 09:20:35 +1200
commitcedcc07facc8d1bf95751135b869bb491e1899c8 (patch)
tree247ad5bab8e108d9c8eb39d9454e7f2422264484 /vim
parentda4532ecf0b79849040c6573233266c7b9afe4cd (diff)
downloaddotfiles-cedcc07facc8d1bf95751135b869bb491e1899c8.tar.gz
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.
Diffstat (limited to 'vim')
-rw-r--r--vim/after/ftplugin/html.vim5
-rw-r--r--vim/ftplugin/markdown.vim2
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[^\\]]\\+\\]: