On 10-Feb-16, Olaf Dabrunz wrote:
> It may be possible to specify plugin dependencies to Vim, so Vim can try
> to load plugins in the order dictated by a dependency graph, so that if
> plugin A does not load or is disabled, it attempts to load plugin B.
> And some plugin C is only loaded when plugin B has been loaded.
> 
> To make this work, Vim also needs a reliable way to find out if a plugin
> has loaded correctly.
> 
>     Maybe like this: when during plugin loading the plugin does *not*
>     use 'finish', then Vim can consider the plugin loaded.
> 
>     But some plugins load in stages, e.g. the taglist.vim plugin, so
>     they use 'finish' even when loading successfully...

How about giving :finish an optional parameter?

When this is present and greater than zero, the plugin indicates
successful loading, same as when :finish is not invoked by the plugin.

When it is zero, the plugin indicates that it did not load successfully.

And when it is less than zero (the default is -1), then the plugin is
not compatible with this scheme.  But probably loading the plugin
failed.

-- 
Olaf Dabrunz (oda <at> fctrace.org)

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