diff --git a/config/init.vim b/config/init.vim index 41e91212f..0dcbe979a 100644 --- a/config/init.vim +++ b/config/init.vim @@ -7,13 +7,6 @@ "============================================================================= scriptencoding utf-8 -" Enable nocompatible -if has('vim_starting') - if &compatible - set nocompatible - endif -endif - let s:SYSTEM = SpaceVim#api#import('system') " Fsep && Psep diff --git a/config/main.vim b/config/main.vim index 0d6dafb59..4db35376b 100644 --- a/config/main.vim +++ b/config/main.vim @@ -6,6 +6,12 @@ " License: GPLv3 "============================================================================= +" Enable nocompatible +if has('vim_starting') + if &compatible + set nocompatible + endif +endif " Detect root directory of SpaceVim let g:_spacevim_root_dir = fnamemodify(expand(''), \ ':p:h:gs?\\?'.((has('win16') || has('win32') diff --git a/vimrc b/vimrc index e850013d4..b723ff172 100644 --- a/vimrc +++ b/vimrc @@ -8,6 +8,6 @@ " Note: Skip initialization for vim-tiny or vim-small. if 1 - execute 'source' fnamemodify(expand(''), ':h').'/config/main.vim' + execute 'source' fnamemodify(expand(''), ':h').'/config/main.vim' endif " vim:set et sw=2