On 11/08/09 11:07, Andy Wokula wrote:
>
> 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?
No need IIUC: ":let" keeps the string value unmodified
> Do we also need the after-directory $VIMRUNTIME."/after"?
There is no $VIMRUNTIME/after/. After-directories are for custom stuff
(system-wide or single-user) to be run _after_ $VIMRUNTIME.
Best regards,
Tony.
--
Pecor's Health-Food Principle:
Never eat rutabaga on any day of the week that has a "y" in
it.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---