Thursday, April 20, 2017

Re: Managing plugins across multiple Vim versions

On 2017-04-20, Ben Fritz wrote:
> On Wednesday, April 19, 2017 at 4:04:39 PM UTC-5, Gary Johnson wrote:
> > I solved the problem by installing netrw in its own directory,
> > ~/.vim/netrw, and then conditionally including that directory in my
> > 'runtimepath' by putting this in my ~/.vimrc:
> >
> > " The version of netrw installed locally needs vim 7.4.1557 or
> > " later:"
> > if v:version > 704 || (v:version == 704 && has("patch1557"))
> > let &rtp = $HOME."/.vim/netrw,".&rtp
> > endif
> >
> > In that way, recent versions of Vim see the latest netrw early in
> > 'runtimepath' and use that version, while older versions of Vim use
> > the version of netrw that was installed in their $VIMRUNTIME.
> >
>
> This seems like a good use case for the new :packadd command. :-)

Yeah, I know, but the pack directory structure is so ugly that
I haven't been able to bring myself to use it.

Regards
Gary

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