On 7 March 2016, Ben Fritz <[email protected]> wrote:
> On Monday, March 7, 2016 at 3:18:06 PM UTC-6, Bram Moolenaar wrote:
> > Lcd wrote:
> >
> > >     Placing a colour scheme like this should work, but it doesn't:
> > >
> > >         $VIM/vimfiles/pack/my/ever/molokai/colors/molokai.vim
> > >
> > >     The reason it doesn't work is that mandatory plugins are
> > > sourced after vimrc, and thus the new scheme can't be set from
> > > vimrc.
> > > 
> > >     To make it work, it can be made optional:
> > > 
> > >         $VIM/vimfiles/pack/my/opt/molokai/colors/molokai.vim
> > > 
> > > and then it can be forced to load early with a packadd:
> > > 
> > >         packadd molokai
> > >         colorscheme molokai
> > > 
> > 
> > The simplest solution (for the user) would be that :colorscheme also
> > finds matches in the "ever" directory under 'packpath'.
> >
>
> I like this idea. To me :colorscheme already means "find the
> colors/schemename.vim file in my runtime and source it". I think
> searching packages as well just makes sense for colorscheme. Possibly
> :runtime! as well but that's more tricky and we can already :packadd
> before using :runtime.

    As it is now, :packadd works only with optional packages.

> > That's not a generic solution though.  Perhaps we need
> > ":packaddever".  Or ":packadd EVER".
> >
>
> Do we need a generic solution?

    We probably do.  There are other similar situations to consider:
autoload, after, ftplugin, syntax, indent, compilers, and probably
others I don't remember rigt now.  Not only we'd need a special case for
each of those, but loading them before the "main" file can bomb out.

> Normal plugins have never worked that way.

    Until recently "normal" plugins were always handled by plugin
managers.

    /lcd

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