Hi,
Currently, gvim loads .gvimrc even if --clean is specified.
I think it should be skipped in that case.
Please check the attached patch.
Regards,
Ken Takata
--
--
You received this message from the "vim_dev" 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
# HG changeset patch
# Parent 1fbae543ed61200814ba1e17f7542e98e850b54a
diff --git a/runtime/doc/starting.txt b/runtime/doc/starting.txt
--- a/runtime/doc/starting.txt
+++ b/runtime/doc/starting.txt
@@ -510,11 +510,12 @@ a slash. Thus "-R" means recovery and "
{not in Vi}
*--clean*
---clean Equal to "-u DEFAULTS -i NONE":
+--clean Equal to "-u DEFAULTS -U NONE -i NONE":
- initializations from files and environment variables is
skipped
- the |defaults.vim| script is loaded, which implies
'nocompatible': use Vim defaults
+ - no {gvimrc} script is loaded
- no viminfo file is read or written
- the home directory is excluded from 'runtimepath'
*-x*
diff --git a/src/main.c b/src/main.c
--- a/src/main.c
+++ b/src/main.c
@@ -1881,6 +1881,9 @@ command_line_scan(mparm_T *parmp)
else if (STRNICMP(argv[0] + argv_idx, "clean", 5) == 0)
{
parmp->use_vimrc = (char_u *)"DEFAULTS";
+#ifdef FEAT_GUI
+ use_gvimrc = (char_u *)"NONE";
+#endif
parmp->clean = TRUE;
set_option_value((char_u *)"vif", 0L, (char_u *)"NONE", 0);
}