1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:40:03 +08:00

Enable nocompatible for vim

This commit is contained in:
wsdjeg 2018-05-02 20:26:58 +08:00
parent 5fe1a24f52
commit bdbb89bcf5
3 changed files with 7 additions and 8 deletions

View File

@ -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

View File

@ -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')