Hirohito Higashi wrote:
> Why is it different in the search pattern at 'runtimepath' and 'packpath' ?
>
> 'runtimepath': "plugin/**/*.vim" (in main.c: 633)
> 'packpath': "plugin/*.vim" (in source_packages())
>
> Is this expected?
> There is no *.vim directly under plugin in the existing plug-in, which
> is under the subfolder is not able to operate in 'packpath'.
>
> e.g. https://github.com/sgur/vim-textobj-parameter
Yes, this is intentional. Previously there was no directory above
"plugin/" to group files under, the subdirectory under "plugin/" could
be used to group files together:
.vim/plugin/group/one.vim
.vim/plugin/group/two.vim
.vim/plugin/other/one.vim
With 'packpath' there is a directory above "plugin/" that can be used
for this:
pack/mine/opt/group/plugin/one.vim
pack/mine/opt/group/plugin/two.vim
pack/mine/opt/other/plugin/one.vim
The big advantage is that when there are associated syntax files, for
example, they go in the same subdirectory, instead of being spread out.
--
Westheimer's Discovery:
A couple of months in the laboratory can
frequently save a couple of hours in the library.
/// 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.