comparison runtime/defaults.vim @ 10096:1eab38e5cfdf v7.4.2319

commit https://github.com/vim/vim/commit/b07a82b6d5f904ed3e623e775c3458adb1cc0a3e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 3 20:08:56 2016 +0200 patch 7.4.2319 Problem: No way for a system wide vimrc to stop loading defaults.vim. (Christian Hesse) Solution: Bail out of defaults.vim if skip_defaults_vim was set.
author Christian Brabandt <cb@256bit.org>
date Sat, 03 Sep 2016 20:15:06 +0200
parents 43efa4f5a8ea
children c780e3774dac
comparison
equal deleted inserted replaced
10095:cffb4068cb0b 10096:1eab38e5cfdf
1 " The default vimrc file. 1 " The default vimrc file.
2 " 2 "
3 " Maintainer: Bram Moolenaar <Bram@vim.org> 3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last change: 2016 Aug 28 4 " Last change: 2016 Sep 02
5 " 5 "
6 " This is loaded if no vimrc file was found. 6 " This is loaded if no vimrc file was found.
7 " Except when Vim is run with "-u NONE" or "-C". 7 " Except when Vim is run with "-u NONE" or "-C".
8 " Individual settings can be reverted with ":set option&". 8 " Individual settings can be reverted with ":set option&".
9 " Other commands can be reverted as mentioned below. 9 " Other commands can be reverted as mentioned below.
10 10
11 " When started as "evim", evim.vim will already have done these settings. 11 " When started as "evim", evim.vim will already have done these settings.
12 if v:progname =~? "evim" 12 if v:progname =~? "evim"
13 finish
14 endif
15
16 " Bail out if something that ran earlier, e.g. a system wide vimrc, does not
17 " want Vim to use these default values.
18 if exists('skip_defaults_vim')
13 finish 19 finish
14 endif 20 endif
15 21
16 " Use Vim settings, rather than Vi settings (much better!). 22 " Use Vim settings, rather than Vi settings (much better!).
17 " This must be first, because it changes other options as a side effect. 23 " This must be first, because it changes other options as a side effect.