tpope / vim-markdown

Vim Markdown runtime files
1.22k stars 191 forks source link

Don't Load User's ftplugin_html #166

Closed dylnmc closed 4 years ago

dylnmc commented 4 years ago
  1. vim README.md
  2. ~/.vim/after/ftplugin/html.vim is loaded causing issues

what is this??

maybe change to source $VIMRUNTIME/ftplugin/html.vim or something. I have inoremap <buffer> ... in ~/.vim/after/ftplugin/h tml.vim. I don't want html mappings in markdown. Markdown isn't even close to html/xml formatting.

https://github.com/vim/vim/issues/6354

tpope commented 4 years ago

Markdown is effectively a superset of HTML. You can use any valid HTML in it.

This is easy to guard against on your end, add this to your after file:

if &filetype ==# 'markdown'
  finish
endif