debug_break_level = params.use_debug_break_level;
#endif
+ /* Reset 'loadplugins' for "-u NONE" before "--cmd" arguments.
+ * Allows for setting 'loadplugins' there. */
+ if (params.use_vimrc != NULL
+ && (STRCMP(params.use_vimrc, "NONE") == 0
+ || STRCMP(params.use_vimrc, "DEFAULTS") == 0))
+ p_lpl = FALSE;
+
+ /* Execute --cmd arguments. */
+ exe_pre_commands(¶ms);
+
+ /* Source startup scripts. */
+ source_startup_scripts(¶ms);
+
#ifdef FEAT_MZSCHEME
/*
* Newer version of MzScheme (Racket) require earlier (trampolined)
* initialisation via scheme_main_setup.
* Implement this by initialising it as early as possible
* and splitting off remaining Vim main into vim_main2().
+ * Do source startup scripts, so that 'mzschemedll' can be set.
*/
return mzscheme_main();
#else
vim_main2(void)
{
#ifndef NO_VIM_MAIN
- /* Reset 'loadplugins' for "-u NONE" before "--cmd" arguments.
- * Allows for setting 'loadplugins' there. */
- if (params.use_vimrc != NULL
- && (STRCMP(params.use_vimrc, "NONE") == 0
- || STRCMP(params.use_vimrc, "DEFAULTS") == 0))
- p_lpl = FALSE;
-
- /* Execute --cmd arguments. */
- exe_pre_commands(¶ms);
-
- /* Source startup scripts. */
- source_startup_scripts(¶ms);
-
#ifdef FEAT_EVAL
/*
* Read all the plugin files.