1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00
SpaceVim/config/main.vim
wsdjeg 3ac76a0ca8 Better default
Fix up

Fix up

Fix up

Fix rtp

Update project layout

Fix colorscheme layer

Add colorsheme

close #1308

Close #1307

Set default fillchars

Move cache to cache

Disable lang layer

Remove layers

Fix crash

ref : https://github.com/neovim/neovim/issues/7876

Fix plugin manager

Filter same filename:linenumber in flygrep

Fix type
2018-02-25 01:04:54 +08:00

26 lines
842 B
VimL

"=============================================================================
" main.vim --- Main file of SpaceVim
" Copyright (c) 2016-2017 Shidong Wang & Contributors
" Author: Shidong Wang < wsdjeg at 163.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
" Detect root directory of SpaceVim
let g:_spacevim_root_dir = fnamemodify(expand('<sfile>'),
\ ':p:h:gs?\\?'.((has('win16') || has('win32')
\ || has('win64'))?'\':'/') . '?')
lockvar g:_spacevim_root_dir
try
call SpaceVim#begin()
catch
" Update the rtp only when SpaceVim is not contained in runtimepath.
execute 'set rtp +=' . fnamemodify(g:_spacevim_root_dir, ':p:h:h')
call SpaceVim#begin()
endtry
call SpaceVim#loadCustomConfig()
call SpaceVim#end()
" vim:set et sw=2 cc=80: