Nicola wrote:
> (Sorry for yet another post, but I have embraced packages and I really like
> them!)
>
> To load all the optional plugins of a package a :packadd command must be issued
> once for each plugin.
>
> What do you think about adding a command that loads all the plugins in an opt
> directory at once? Something like:
>
> :packaddall[!] {name} Search for a package directory in 'packpath' and source
> all the plugin files found inside each optional plugin
> directory in that package. The directory must match:
> pack/{name}
> For each directory pack/{name}/opt/foobar, a
> `:packadd[!] foobar` command is issued.
>
> A command like the above might not be necessary in a (future) world
> where each plugin takes care of loading its own dependencies from the
> same package. But I can imagine a situation in which a user may build
> its own package by putting together loosely coupled plugins. Or a
> package that provides some optional extensions, which are independent
> of each other. In those cases, a command like the above might be
> convenient.
Well, although I don't think this is a bad idea, I think we also need to
push plugin/package writers to set it up properly.
In general, ":packadd <name>" should be sufficient to load whatever
"name" does. There can be other optional plugins that the user may want
to load or not. :packaddall sounds more like "load everything that
happened to be in that archive". Might work now, but with the next
update it might add a plugin for debugging that you don't want.
--
hundred-and-one symptoms of being an internet addict:
186. You overstay in the office so you can have more time surfing the net.
/// Bram Moolenaar -- Bram@Moolenaar.net -- 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_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/d/optout.
Saturday, April 2, 2016
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment