Axel Bender wrote:
> Tracing the startup process, reading a MD file ("gvim -V readme.md") I
> noticed that two HTML files were sourced: my own one in %VIM\.vim\syntax,
> plus the original (unchanged) one in %VIM\syntax (rtp only contains the stems
> of these two paths).
> This is due to the "runtime!" (mind the exclamation mark) command in
> markdown.vim. Removing the "!" avoids the "error", so my posted suggestion
> was wrong.
> In fact, the error is a result of other files, e.g. vb.vim, css.vim, js.vim
> also being sourced by the original html.vim file (which btw. uses "syntax
> include" commands to source its dependent files).
>
> Therefore, the question stands: does it make any sense to use "runtime!"
> (instead of "syntax include") here, given the possibility that s.o. (like me)
> completely rewrites a bunch of syntax files (in his own, private path)? Is
> this common practice (which would implicate that I also would have to rewrite
> any other syntax file that possibly sources "my" files?
The exclamation point is there for a reason. E.g. someone can have some
changes for the syntax in the "after" directory.
That the markdown syntax depends on something in the html syntax is not
unusual. If you use a different html syntax file, you may also need to
use a different markdown syntax file. Or, if it's a common problem,
have a condition in the markdown syntax file to disable the missing
part.
--
hundred-and-one symptoms of being an internet addict:
14. You start introducing yourself as "Jim at I-I-Net dot net dot au"
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.