I have a couple of
autocmds in my vim config along the lines of this (the actual commands are quite long):
au BufWritePost *.latex.md silent! ... au BufWritePost *.md silent! ...
where writing files with
.latex.md extensions runs pandoc to convert my markdown files into the corresponding format. The problem I have (which you have probably guessed by looking at the example above) is that globbing for
*.md subsumes files with a
.latex.md extension. This means that files with that extension produce both HTML and a PDF, which is unnecessary. Is there any way to make the two autocommands mutually exlusive, or do I need to create a command or function that runs the correct command instead?