Mercurial > vim
changeset 13466:cf7cd0272011 v8.0.1607
patch 8.0.1607: --clean loads user settings from .gvimrc
commit https://github.com/vim/vim/commit/62dd452d02f4a17f7e9fdfb3656b71bea62e12fe
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 14 21:20:02 2018 +0100
patch 8.0.1607: --clean loads user settings from .gvimrc
Problem: --clean loads user settings from .gvimrc.
Solution: Behave like "-U NONE" was used. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 14 Mar 2018 21:30:06 +0100 |
parents | cfeb8bdb9bbd |
children | b073fa38b590 |
files | runtime/doc/starting.txt src/main.c src/version.c |
diffstat | 3 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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*
--- 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); }