Tuesday, May 23, 2017

Re: Bug in ftdetect?

Frew Schmidt wrote:

> 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.

I'm afraid this doesnt make any sense. I would suggest to reinstall
Vim, making sure you first delete all Vim related files (make a backup
of your preferences somewhere).

--
THEOREM: VI is perfect.
PROOF: VI in roman numerals is 6. The natural numbers < 6 which divide 6 are
1, 2, and 3. 1+2+3 = 6. So 6 is a perfect number. Therefore, VI is perfect.
QED
-- Arthur Tateishi

/// Bram Moolenaar -- Bram@Moolenaar.net -- 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_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: