View | Details | Raw Unified | Return to bug 251420
Collapse All | Expand All

(-)vimrc (-2 / +12 lines)
Lines 1-7 Link Here
1
" defaults.vim will override this file. Sourcing it here and
1
" defaults.vim will override this file. Sourcing it here and
2
" setting the skip flag prevents clobbering settings
2
" setting the skip flag prevents clobbering settings
3
source $VIMRUNTIME/defaults.vim
3
" However, according to ":help VIMINIT", defaults.vim should only
4
let skip_defaults_vim = 1
4
" get sourced by default if none of the startup files are present
5
for s:location in ['~/.vimrc', '~/.vim/vimrc', '~/_vimrc', '~/.exrc', '~/_exrc', $VIMINIT, $EXINIT]
6
    if strlen(s:location) > 0 && filereadable(expand(s:location))
7
        let skip_defaults_vim = 1
8
    endif
9
endfor
10
11
if !exists('skip_defaults_vim')
12
    source $VIMRUNTIME/defaults.vim
13
    let skip_defaults_vim = 1
14
endif
5
15
6
set nocompatible      " Enable Vim mode (instead of vi emulation)
16
set nocompatible      " Enable Vim mode (instead of vi emulation)
7
17

Return to bug 251420