Friday, March 4, 2016

Re: Packages

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

No comments:

Post a Comment