On 2021-06-30, [email protected] wrote:
> TL;DR, I need to reset did_filetype() in the middle of filetype-detection
> autocommands. I have a hack that works, but is inefficient (`new | bdelete`).
> Is there another way?

See

    :help :setf

and see if the FALLBACK argument does what you want.

For an example of its use, see $VIMRUNTIME/filetype.vim.

HTH,
Gary

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20210701004041.GB22769%40phoenix.

Raspunde prin e-mail lui