Monday, July 8, 2013

Re: Programmatically detecting whether plugin scripts loaded?


On Jul 9, 2013 9:55 AM, "David Barnett" <daviebdawg@gmail.com> wrote:
>
> Is there any way to detect programmatically from a vim script whether vim has started loading plugin scripts? It would be useful for plugin managers etc. to be able to detect what phase of startup their code is being called from.
>
> Also, would there be any unwanted consequences if vim detected directories added to &runtimepath after startup and sourced those plugin scripts, too? For instance:
>>
>> == .vim/plugin/x.vim ==
>> set rtp+=~/y/plugin/y.vim
>
> never ends up sourcing ~/y/plugin/y.vim. Should it?
>
> David

VAM processes output of :scriptnames in this case and checks out whether some of the plugins are missing. It is the hacky workaround though.

> --
> --
> 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/groups/opt_out.
>  
>  

--
--
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/groups/opt_out.
 
 

No comments:

Post a Comment