diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-04 18:17:32 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-04 18:17:32 +1200 |
commit | 85d5c47d747b05668df688bc44ac827864740db3 (patch) | |
tree | 713a4635ba1ea6a2efcb253df2bf2b640d124c30 /vim/after/ftplugin/html/url_link.vim | |
parent | Set and clear Markdown autocmd in group (diff) | |
download | dotfiles-85d5c47d747b05668df688bc44ac827864740db3.tar.gz dotfiles-85d5c47d747b05668df688bc44ac827864740db3.zip |
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.
Diffstat (limited to 'vim/after/ftplugin/html/url_link.vim')
-rw-r--r-- | vim/after/ftplugin/html/url_link.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vim/after/ftplugin/html/url_link.vim b/vim/after/ftplugin/html/url_link.vim index 85e9d719..4102e768 100644 --- a/vim/after/ftplugin/html/url_link.vim +++ b/vim/after/ftplugin/html/url_link.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_url_link') || &compatible finish endif +if &filetype == 'markdown' + finish +endif let b:did_ftplugin_html_url_link = 1 if exists('b:undo_ftplugin') let b:undo_ftplugin = b:undo_ftplugin |