On 2006-11-29, DervishD <[EMAIL PROTECTED]> wrote:
>     Hi all :)
> 
>     I want to be able to NOT load the plugins in my system-wide runtime
> directory, and instead loading my own set of plugins, and only those. So
> far, I know that "set noloadplugins" will do the job, partially. This
> won't load the default plugins in the $VIMRUNTIME/plugins directory, ok,
> but then my own plugins won't be loaded from "~/.vim/plugins".
> 
>     Apart from sourcing them manually from my .vimrc (which is not
> difficult), is there any other way of avoiding the loading of the
> plugins in the runtime directory but load the ~/.vim/plugins ones? Of
> course, a good way would be not installing the default plugins in the
> first place, but I want them available for the rest of users in my
> system (a fellow programmer, specially).
> 
>     Any help or suggestion is welcome, and thanks a lot in advance. If
> the answer is in the user manual (which I haven't read entirely, I'm in
> "usr_40.txt" right now), feel free to ignore me, I'll hit it sooner or
> later.

One way would be to put this in your .vimrc:

    exec 'set rtp-='.$VIMRUNTIME

That will remove $VIMRUNTIME from your 'runtimepath' so that vim 
won't look there for plugins.  It won't look there for filetype, 
syntax or indent plugins, either, which may be either a problem or a 
feature.

Note that the above command will probably fail (untested) if there 
are spaces in $VIMRUNTIME, but I thought that was a safe assumption 
on a Unix system.

HTH,
Gary

-- 
Gary Johnson                 | Agilent Technologies
[EMAIL PROTECTED]     | Wireless Division
                             | Spokane, Washington, USA

Reply via email to