Wednesday, May 24, 2017

Re: Bug in ftdetect?

P.S. If you want to detect name changes, there's BufFilePost. --Antony

On 24 May 2017 at 08:17, Antony Scriven <adscriven@gmail.com> wrote:
> Try taking out the BufNew autocmd. That'll get triggered for every
> file in the args list, whereas BufRead is only triggered for the first
> one that's actually edited. FWIW 'BufNew' is not in the template
> ftdetect file in the docs. --Antony
>
> On 23 May 2017 at 22:28, Frew Schmidt <frioux@gmail.com> wrote:
>> On Tuesday, May 23, 2017 at 12:58:16 PM UTC-7, Bram Moolenaar wrote:
>>> 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).
>>
>> Well I have already repro'd this on a fresh 7.3, 7.4, 8.0, and system 8.0. Here's a reproduction using docker, with no dotfiles or even system vim installed:
>>
>> $ docker run -it --rm library/buildpack-deps bash -l
>> $ git clone git://github.com/vim/vim
>> $ make
>> $ make install
>> $ mkdir -p ~/.vim/ftdetect
>> $ echo 'autocmd BufNew,BufNewFile,BufRead *.md :set filetype=markdown' > ~/.vim/ftdetect/markdown.vim
>> $ mkdir testing
>> $ cd testing
>> $ touch {1..500}.md
>> $ vim
>> :args *
>>
>> It still happens, and this is from master, today.
>>
>> If you don't have time to check this yourself I get it. I have multiple
>> workarounds at this point.
>>
>> Thanks,
>> fREW Schmidt
>>
>> --
>> --
>> 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.

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