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

On Aug 10, 4:33 pm, Gregory Margo <[email protected]> wrote:
> On Mon, Aug 10, 2009 at 12:06:09AM -0700, ron wrote:
> > I don't want to disable all plugins.  I want to disable some plugins,
> > and 'loadplugins' doesn't permit a "blacklist" or something.
>
> There are two possible methods.
>
> 1) Set 'noloadplugins' and then explicitly load the individual plugins you
>    want with the runtime command.
>
> 2) Set 'loadplugins' (the default), and set a list of variables that will
>    short-circuit the loading of individual standard plugins.  All but
>    one of the standard plugins has a disabling variable, and the oddball
>    can be worked around.
>    Here's the list of variables (an excerpt from my own .vimrc):
>
>         " If automatically loading plugins, use these variables to disable
>         " certain of them.
>
>         " This is confusing - by setting the variable, the plugin file will
>         " still be read, but not executed beyond the load check.
>         " So, comment out the lines for the plugins you want to load.
>         let g:loaded_getscriptPlugin = 0    " getscriptPlugin.vim
>     "   let g:loaded_gzip = 0               " gzip.vim
>     "   let g:loaded_matchparen = 0         " matchparen.vim
>     "   let g:loaded_netrwPlugin = 0        " netrwPlugin.vim
>         let g:loaded_rrhelper = 0           " rrhelper.vim
>         let g:loaded_spellfile_plugin = 0   " spellfile.vim
>     "   let g:loaded_tarPlugin = 0          " tarPlugin.vim
>         "                                   " tohtml.vim (See below)
>         let g:loaded_vimballPlugin = 0      " vimballPlugin.vim
>     "   let g:loaded_zipPlugin = 0          " zipPlugin.vim
>
>         " tohtml.vim            convert a file with syntax highlighting to 
> HTML
>         " This one is irritating and cannot be blocked with a simple variable.
>         " Instead, the TOhtml command must be created, so create a bogus one.
>         command -range=% TOhtml :echo "TOhtml is not implemented"
>
> --
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> Gregory H. Margo
> gmargo at yahoo/com, gmail/com, pacbell/net; greg at margofamily/org
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui