Friday, February 26, 2016

Re: Packages

Christian Brabandt wrote:

> On Fr, 26 Feb 2016, Bram Moolenaar wrote:
>
> >
> > Matthew Desjardins wrote:
> >
> > > There have been a couple of people posting about how the new package
> > > feature can, in its current state, replace Pathogen.
> > >
> > > https://groups.google.com/d/msg/vim_dev/BN5DuHpzzBc/OjoGDSqeEQAJ
> > > https://groups.google.com/d/msg/vim_use/QHqDKtdqUkk/PY7WydFdAQAJ
> > >
> > > Could someone explain how? It doesn't seem to work for plugins that
> > > don't have a "plugin" directory, and as far as I can tell from the
> > > source it's not supposed to, either.
> > >
> > > Why was this decision made to only support plugins with a "plugin"
> > > directory?
> >
> > It's very easy to add an empty plugin/foo.vim file. If you really need
> > to, I would expect nearly every plugin to at least do something, such as
> > defining a user command or mapping. Maybe it's empty if you only want to
> > make a syntax file available.
>
> Really a plugin directory is necessary? That sounds awkward. What about
> colorschemes, indent or ftplugins and syntax scripts?
>
> We could still change it, right?
>
> > It would be possible to make another command than :loadplugin to find
> > any directory with the specified name under 'packpath', but I don't see
> > a good reason. Perhaps adding a remark to the documentation is
> > sufficient?
>
> I'd rather prefer it to be fixed instead of adding yet another command
> or option.

Hmm, so we throw out ":loadplugin" and add ":loadpackitem"?
It would then find directories matching "pack/*/opt/{name}"

--
If an elephant is left tied to a parking meter, the parking fee has to be paid
just as it would for a vehicle.
[real standing law in Florida, United States of America]

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

No comments: