2016-03-04 14:25 GMT+03:00 LCD 47 <lcd047@gmail.com>:
> On 3 March 2016, Bram Moolenaar <Bram@moolenaar.net> wrote:
> [...]
>> I realize several people who have previously been using Pathogen are
>> confused. Perhaps we can just put every directory under "pack/*/ever"
>> in 'runtimepath'?
>
> A tangentially related question. Assume I need to check that a
> plugin named "foo" is installed and enabled. Assume also "foo" contains
If you need to check that it is installed and *enabled* then you
should not do anything you are not already doing. Problem is that with
"just put every directory under pack/*/ever" you probably will not be
able to do this from the vimrc: rationale is that
1. Putting should be automatic.
2. Yet user settings regarding where "pack" is should be respected.
So "just put" should be done somewhere between "load vimrc" and "load
plugins" initialization stages.
> a "representative" autoload file "autoload/foo.vim". Before packpath
> and friends I could do something like this, and the result was pretty
> reliable:
>
> if globpath(&runtimepath, "autoload/foo.vim", 1) != ""
> " foo is installed
> ...
> endif
>
> What would be the preferred way to do the same with the new package
> scheme, accounting for optional packages, old style plugins, and so on?
>
> /lcd
>
> --
> --
> 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.
--
--
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:
Post a Comment