]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Use just markdown as filetype.
authorCiro Santilli <ciro.santilli@gmail.com>
Tue, 6 Oct 2015 11:26:05 +0000 (13:26 +0200)
committerCiro Santilli <ciro.santilli@gmail.com>
Tue, 6 Oct 2015 11:43:58 +0000 (13:43 +0200)
. for multiple filetypes does not work with autocmd.

There seems to be no known workaround:
http://vi.stackexchange.com/questions/4893

This is a breaking change as it would break user scripts
who used autocmd, but we have already broken them
with this compound filetype, so let's just finish the job.

Semi-reverses: https://github.com/plasticboy/vim-markdown/pull/217

ftdetect/markdown.vim

index fab3ab052ca5e9ba8aa68d354233cc02622d4eb2..611ecaa0d0cf8331ea4c6b8047f62657bb04a20a 100644 (file)
@@ -1,3 +1,3 @@
 " markdown filetype file
-au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn}   set filetype=mkd.markdown
-au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn}.{des3,des,bf,bfa,aes,idea,cast,rc2,rc4,rc5,desx} set filetype=mkd.markdown
+au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn} set filetype=markdown
+au BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn}.{des3,des,bf,bfa,aes,idea,cast,rc2,rc4,rc5,desx} set filetype=markdown