1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 20:10:05 +08:00
SpaceVim/config/main.vim

32 lines
649 B
VimL
Raw Normal View History

2016-12-26 21:11:19 +08:00
let g:Config_Main_Home = fnamemodify(expand('<sfile>'), ':p:h:gs?\\?'.((has('win16') || has('win32') || has('win64'))?'\':'/') . '?')
2016-12-29 18:53:29 +08:00
2016-12-26 21:11:19 +08:00
try
call zvim#util#source_rc('functions.vim')
catch
2016-12-28 21:36:11 +08:00
execute 'set rtp +=' . fnamemodify(g:Config_Main_Home, ':p:h:h')
2016-12-26 21:11:19 +08:00
call zvim#util#source_rc('functions.vim')
endtry
2016-12-28 21:36:11 +08:00
2016-12-26 21:11:19 +08:00
call zvim#util#source_rc('init.vim')
2016-12-29 18:53:29 +08:00
call SpaceVim#default()
2016-12-26 21:11:19 +08:00
2016-12-28 21:36:11 +08:00
call SpaceVim#loadCustomConfig()
call SpaceVim#end()
2016-12-26 21:11:19 +08:00
call zvim#util#source_rc('general.vim')
2017-01-07 01:09:56 +08:00
2016-12-26 21:11:19 +08:00
2017-01-03 22:29:54 +08:00
call SpaceVim#autocmds#init()
2016-12-26 21:11:19 +08:00
if has('nvim')
call zvim#util#source_rc('neovim.vim')
endif
call zvim#util#source_rc('commands.vim')
2017-01-08 00:17:32 +08:00
filetype plugin indent on
syntax on