On Wednesday, October 14, 2015 at 5:00:25 AM UTC-5, Tony Mechelynck wrote:
> On Wed, Oct 14, 2015 at 10:15 AM, Peng Dai <[email protected]> wrote:
> > I used vundle.vim to manage my plugin now. And I write my own conf in the 
> > vimrc.
> >
> > I now want to write all my own-conf tobe a vim-plugin, which will be hosted 
> > on the github and be installed by Vundle.vim.
> >
> > I have to do somethings before all others plugins loading, for example set 
> > other plugins options.
> > I also need to do somethings after all others plugin loaded. for example my 
> > own keymapping, :set cmd.
> >
> > I cant set my plugin at the last of runtimepath, and put my keymap-config 
> > in the after directory.
> > But I really do not know how to do things before other plugins. cause there 
> > is no before directory at all.
> >
> > So I am here for some help. thanks.
> 
> 
> The runtime directories are searched in the sequence in which they are
> listed in 'runtimepath' which I STRONGLY recommend to leave at the
> following default value:

If by "leave at the default value" you mean "don't mess with it manually", 
sure, maybe I can see that.

But honestly since I've installed Pathogen it just makes plugin management SO 
MUCH EASIER that I no longer scoff at automated runtimepath management via 
plugin.


> 
> Alternately, you could also include the "before" part in your vimrc
> (which is sourced at the begin of startup, before any plugins), or
> source it from there, and source the "after" part from an autocommand
> for the VimEnter autocommand (which is triggered at the very end of
> startup). In this case you might drop them both (with different names,
> of course) in some directory where Vim doesn't look spontaneously,
> such as for instance (on Unix) ~/.vim/scripts/
> 

That's what I would suggest, something similar to installing a plugin manager, 
where the plugin manager itself is hosted in a "bundle" directory not normally 
on the runtimepath, like in the Pathogen FAQ entry:

    runtime bundle/vim-pathogen/autoload/pathogen.vim

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