I wrote:

[...]

> Perhaps all we need is:
> - 'pluginpath' - list of directories that contain plugin bundles that
>   are always loaded.  User puts them there.
> - 'optionalpluginpath' - list of directories that contain plugin bundles
>   that can be loaded when wanted (needs a better name).
> - ":loadplugin" - loads an optional plugin and remembers that Vim tried
>   to load it, won't load it a second time.
> 
> When loading a plugin from 'pluginpath' or 'optionalpluginpath' that
> directory is added to 'runtimepath'.  That hopefully keeps existing
> plugins and plugin managers working.

An alternative would be:
- 'bundlespath' defines where to search for bundles, the default would
  be the same as the 'runtimepath' default.
- Below the runtime directory, besides syntax, indent, etc. there would
  be two more directories:
  "bundledef" - default plugins, loaded on startup
  "bundleopt" - plugins loaded with ":loadplugin"

Main disadvantage is still that distributing a plugin with its optional
dependencies end up in multiple directories, can't be a git clone or
unpacking one zip archive.  Would still need another directory level to
solve that.  E.g. when netrw is a default plugin that may load nwdebug:
        ~/vim/packages/netrw/def/netrw/plugin/netrw.vim
        ~/vim/packages/netrw/def/netrw/syntax/netrw.vim
        ~/vim/packages/netrw/opt/nwdebug/plugin/nwdebug.vim

When found it would add ~/vim/packages/netrw/def/netrw to 'runtimepath'.
And  when nwdebug gets used also ~/vim/packages/netrw/opt/nwdebug.

Not sure if I like this...

-- 
hundred-and-one symptoms of being an internet addict:
228. You spend Saturday night making the counter on your home page
     pass that 2000 mark.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.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