Gary Johnson wrote:

> I read ":help packages" and ":help add-package", trying to get a
> better understanding of how this all works, and had a few comments.
> Vim version is 7.4.1655.

Thanks.  The changes after changes may have left some confusing text
behind.

> 
> *   repeat.txt, line 484
> 
>         Note that the files under "pack/foo/opt" or not loaded automatically, 
> only the
> 
>     The "or" should be "are".
> 
> *   repeat.txt, line 519
> 
>         This could be done inside always.vim, if some conditions are met.  Or 
> you
> 
>     There is no other mention of always.vim.  I have no idea what
>     that file is for or where it should go.

I'll remove always.vim, we don't need it.

> *   $VIMRUNTIME/pack/dist
> 
>     The matchit.vim plugin is now at
>     $VIMRUNTIME/pack/dist/opt/matchit/plugin/matchit.vim.  I assume
>     that the "dist" directory is for optional plugins (non-optional
>     plugins would just go under $VIMRUNTIME) that come standard with
>     the Vim distribution.  The "dist" directory is not documented
>     anywhere that I can find.

It's just a name.  :packadd looks in pack/*/opt.

> *   Installing the matchit plugin
> 
>     ":help matchit-install" recommends adding the line
> 
>         packadd matchit
> 
>     to one's vimrc file.  As I wrote in another thread, I think it
>     would be better to recommend using
> 
>         packadd! matchit
> 
>     so that when troublshooting a problem by starting Vim with the
>     --noplugin option argument, the matchit plugin is not loaded
>     either.

Already changed but didn't update runtime files yet.
 
> *   Package help files
> 
>     It seems that package help files could go into either
>     pack/*/start/doc or pack/*/opt/doc.  Is there a preferred
>     location?

The help file must be under the same directory as the plugin, so that
when :packadd adds that directory to 'runtimepath' the help file can be
found.

>       How do you add a local package help file?  Is the
>     command
> 
>       :helptags ~/.vim/pack/mypack/start/myplugin/doc
> 
>     or is there something shorter that makes use of Vim's knowledge
>     of packages?

When using a distributed package there should be no need to run
:helptags.  It should either come with a tags file or generate it when
needed.  If you add a plugin with docs yourself, you can run helptags
for it.

Pathogen has a command to run helptags on all directories in
'runtimepath'.  Although that can be handy, it also may change tags
files that you don't want to change.  Esp. for packages that are from a
repository, changing the tags file could create merge conflicts.

Not sure if there is a way to help the user with this.

-- 
You cannot have a baby in one month by getting nine women pregnant.

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

Raspunde prin e-mail lui