On 2016-03-25, Bram Moolenaar wrote:
> Gary Johnson wrote:
> 
> > On 2016-03-25, Bram Moolenaar wrote:
> > > Patch 7.4.1649
> > > Problem:    The matchit plugin needs to be copied to be used.
> > > Solution:   Put the matchit plugin in an optional package.
> > > Files:      Filelist, runtime/macros/matchit.vim, 
> > > runtime/macros/matchit.txt,
> > >             runtime/macros/README.txt, src/Makefile,
> > >             runtime/pack/dist/opt/matchit/plugin/matchit.vim,
> > >             runtime/pack/dist/opt/matchit/doc/matchit.txt,
> > >             runtime/pack/dist/opt/matchit/doc/tags,
> > >             runtime/doc/usr_05.txt, runtime/doc/usr_toc.txt
> > 
> > I never copied the matchit plugin, as that would have prevented me
> > from automatically picking up changes to it.  Instead, I created the
> > file ~/.vim/plugin/matchit.vim containing this line:
> > 
> >     runtime macros/matchit.vim
> > 
> > What is the suggested method of sourcing the matchit plugin now?
> 
> Yeah, I was wondering who would source the file from the original
> location.  You can use ":packadd matchit".
> 
> Assuming there are a lot of Vim users in this situation, I can add a
> macros/matchit.vim that contains the packadd command.

>From tyru's reply and ":help packadd", it looks like there are two
solutions that are within the spirit of Vim's package handling:

1.  Add ":packadd! matchit" to my ~/.vimrc.
2.  Replace ":runtime macros/matchit.vim" with ":packadd matchit" in
    my ~/.vim/plugin/matchit.vim.

If I'm understanding all this, then I think ":help pack-add" should
be changed.  I don't think a user would generally want to use
:packadd without the ! in their ~/.vimrc as that would source that
plugin at that point and would ignore the --noplugin option
argument.  I think a user's ~/.vimrc should generally contain only
:packadd! commands, with the !.

The version of Vim I'm using at the moment is 7.4.1579.

Regards,
Gary

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