MarcWeber / vim-addon-manager

manage and install vim plugins (including their dependencies) in a sane way. If you have any trouble contact me. Usually I reply within 24 hours
Other
660 stars 59 forks source link

Errors when using -u command line option #96

Closed skeept closed 11 years ago

skeept commented 11 years ago

Sometimes I like to specify another vimrc. In my setting there is some issue when I use the -u option. This even fails if I use: vim -u ~/.vimrc (but vim by itself works correctly)

The error list looks like this:

[faramir@Gondor ~/vimfiles]> vim -u ~/.vimrc

--- Auto-Commands --- Error detected while processing /cygdrive/c/Users/faramir/vimfiles/bundle/vam/autoload/vam.vim: line 88: E10: \ should be followed by /, ? or & line 89: E10: \ should be followed by /, ? or & line 90: E10: \ should be followed by /, ? or & Error detected while processing function SetupVAM..vam#ActivateAddons..vam#ActivateRecursively: line 16: E712: Argument of get() must be a List or Dictionary line 20: E116: Invalid arguments for function vam#ActivateAddons line 21: E10: \ should be followed by /, ? or & line 22: E10: \ should be followed by /, ? or & line 23: E10: \ should be followed by /, ? or & line 24: E10: \ should be followed by /, ? or & Error detected while processing function SetupVAM..vam#ActivateAddons..vam#ActivateRecursively..vam#PluginRuntimePath: line 2: E715: Dictionary required Error detected while processing function SetupVAM..vam#ActivateAddons..vam#ActivateRecursively: line 37: E10: \ should be followed by /, ? or & line 38: E10: \ should be followed by /, ? or & line 39: E10: \ should be followed by /, ? or & line 16: E712: Argument of get() must be a List or Dictionary line 20: E116: Invalid arguments for function vam#ActivateAddons line 21: E10: \ should be followed by /, ? or & line 22: E10: \ should be followed by /, ? or & line 23: E10: \ should be followed by /, ? or & line 24: E10: \ should be followed by /, ? or & Error detected while processing function SetupVAM..vam#ActivateAddons..vam#ActivateRecursively..vam#PluginRuntimePath: line 2: E715: Dictionary required Error detected while processing function SetupVAM..vam#ActivateAddons..vam#ActivateRecursively: line 37: E10: \ should be followed by /, ? or & line 38: E10: \ should be followed by /, ? or & line 39: E10: \ should be followed by /, ? or & line 16: E712: Argument of get() must be a List or Dictionary line 20: E116: Invalid arguments for function vam#ActivateAddons line 21: E10: \ should be followed by /, ? or & line 22: E10: \ should be followed by /, ? or & line 23: E10: \ should be followed by /, ? or & line 24: E10: \ should be followed by /, ? or & Error detected while processing function SetupVAM..vam#ActivateAddons..vam#ActivateRecursively..vam#PluginRuntimePath:

ZyX-I commented 11 years ago

It has nothing to do with vam, you should use set nocompatible in your vimrc or -N option on the command-line.

Remember this always when you see E10 errors.

skeept commented 11 years ago

Thanks!

I did have set nocompatible in my vimrc but only after I called the VAM set up functions. I remember reading in the docs that it should be called previously but since it was working before when using .vimrc I never thought that was the problem.

I have another question. I still have some plugins under .vim/plugins. So if if I start vim normally, with VAM these are loaded in vim, as they should. But if I use a specific vimrc file and besides that supply the --noplugins all the plugins in .vim/plugin are still loaded. Is there any way of disabling loading the plugins in .vim/plugins when the --noplugins is given (or some other option to do this)?

ZyX-I commented 11 years ago

Set g:vim_addon_manager.source_missing_plugins to zero as quick workaround. I have updated VAM to respect &loadplugins option. Note: in any case this option must be set before VAM is loaded (--noplugin does this AFAIK).

By the way, this must have been a separate issue. I can’t ref this one in a commit in question.