On 2009-12-09, Pablo Giménez wrote:
> Hi
> I want to be able to run an script after all plugins have been loaded.
> So ar I want to change some menus entries created by the plugins to suit my
> needs, but not touching the plugins code, so I want to edit my menu entries
> after all the plugins have been loaded.

I usually use an autocommand with the VimEnter event for this, e.g.,

    au VimEnter * if exists(":AlignCtrl") | AlignCtrl p0P0 | endif

You can find this and other autocommand events here:

    :help autocommand-events

You can also find a description of the sequence of activities that
Vim performs at startup here:

    :help startup

which might help you choose when and how you source your script.

Another idea would be to name your script something like ~~~last.vim
and put it in ~/.vim/after/plugin.  That name will almost guarantee
that that script is sourced after all other plugins, assuming that
LC_COLLATE for your locale specifies the ASCII collating sequence,
in which ~ is the last printing character.

HTH,
Gary


-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to