On Thursday, May 4, 2017 at 10:56:21 AM UTC-5, Andy Stewart wrote:
> 
> I believe this is because vim's filetype detection uses:
> 
> runtime! ftdetect/*.vim
> 
> I think that when that line is executed, the plugins in 
> ~/.vim/pack/stuff/start/ are not on the runtimepath.  So Vim falls back to 
> its generic configuration file.
> 
> When I change that line to:
> 
> runtime! ALL ftdetect/*.vim
> 
> – the filetype is set as expected.
> 
> Vim 8.0.586.
> 


Hmm, that will also search in "opt" packages. I don't think that's wanted 
unless the user has used packadd already in which case it will be in the 
runtimepath. Probably it should just search the "start" packages and then the 
runtime. How is this done? Does it need two runtime commands, first "runtime! 
START ftdetect/*.vim" followed by "runtime! ftdetect/*.vim" to pick up the 
runtimepath files?

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

Raspunde prin e-mail lui