On 2012-01-19, Maicon wrote:

> > If :scriptnames shows all your plugins, then what behavior makes you
> think that only one plugin loads?
> 
> Because VCSCommand is the only that works. Example: the "session.vim"
> plugin should let me save sessions, but the command doesnot work, and
> the option in the toolbar of gvim for this plugin doesnt appear
> either. Also, when I try the command :SCCompile, from the
> SingleCompile plugin, vim says that the command doesnot exist.

I don't use either of those plugins, but I downloaded 
SingleCompile-2.9.3.zip and took a look at plugin/SingleCompile.vim.
Here are the first lines of that file.


    if v:version < 700
        finish
    endif

    " check whether this script is already loaded
    if exists("g:loaded_SingleCompile")
        finish
    endif
    let g:loaded_SingleCompile = 1

    let s:saved_cpo = &cpo
    set cpo&vim


    " commands {{{1
    command -nargs=* SCCompile
                \ if <q-args> == '' | call SingleCompile#Compile() |
                \ else | call SingleCompile#Compile(<q-args>) | endif

So unless you've set g:loaded_SingleCompile someplace, the only way
I see that SCCompile could not exist would be if
plugin/SingleCompile.vim was not sourced.  So, under the conditions
in which Vim says the command SCCompile doesn't exist, :scriptnames
should not show plugin/SingleCompile.vim.

Another way to look at this would be to start Vim as

    vim -N -u NONE

then execute

    :runtime plugin/SingleCompile.vim
    :scriptnames
    :SCCompile

and see what happens.

Regards,
Gary

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to