On Tuesday, May 23, 2017 at 9:40:02 AM UTC-7, Frew Schmidt wrote:
> On Tuesday, May 23, 2017 at 9:16:45 AM UTC-7, Frew Schmidt wrote:
> > > Perhaps you can get some more information by setting 'verbose' to a
> > >
> > > non-zero number, e.g. ten.
> >
> >
> > Well, I ran it with -V10 and even after deleting both ~/.vim/ (except for the ftdetect file) and ~/.vimrc and I can still reproduce it. It looks about the same as before: the markdown support is getting reloaded for every file instead of once at the beginning. I don't know how to store :messages in a file or I'd attach them.
>
> Another interesting detail: it's not slow if I set the filetype to sillybonk or perl, so this is somehow related to the markdown support. I think I'll bisect the markdown files and see which one causes it, and then bisect the file itself.
If I replace the contents of /usr/share/vim/vim80/syntax/vb.vim with `let b:current_syntax = "vb"` everything is fast and, as I would hope, the support files are not loaded N times per buffer but instead exactly once.
I verified as well by putting the contents back and setting the filetype to `vb` and I can continue to reproduce the issue.
I still don't know why ftdetect causes this and filetype.vim does not, and I also don't see what's wrong with the vb support files.
--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment