mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 07:00:04 +08:00
Enable nocompatible for vim
This commit is contained in:
parent
5fe1a24f52
commit
bdbb89bcf5
@ -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
|
||||
|
@ -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('<sfile>'),
|
||||
\ ':p:h:gs?\\?'.((has('win16') || has('win32')
|
||||
|
Loading…
Reference in New Issue
Block a user