ron schrieb:
> Right, I understand that -- and that is the same sort of ugliness I
> have in my own 'vimrc'.
> 
> My point isn't that it is currently impossible -- but rather that we
> have to go through silly steps to suppress what should really not be
> loaded by default in the first place, and that there is no consistency
> in how plugins currently work.
> 
> I use plugins for my own code, I don't want to disable them.  But I
> don't want to load a whole bunch of code I never use, either.  On the
> other hand, I do want the option to load the 'standard' plugins if
> desired (and especially I want users of my startup code to be able to
> do so if they want).

To just load the standard plugins, you could temporarily modify the
'runtimepath' option in the vimrc (untested):
    
    set noloadplugins
    let s:sav_rtp = &rtp
    let &rtp = $VIMRUNTIME
    runtime! plugin/*.vim
    let &rtp = s:sav_rtp

Things that come to mind about this code:
How about escaping in &rtp and $VIMRUNTIME?
Do we also need the after-directory $VIMRUNTIME."/after"?

-- 
Andy

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

Raspunde prin e-mail lui