-
Notifications
You must be signed in to change notification settings - Fork 254
/
init.vim
40 lines (34 loc) · 1.26 KB
/
init.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
" _
" ___ _ __ __ _ ___ ___ __ _(_)_ __ ___
" / __| -_ \ / _- |/ __/ _ \____\ \ / / | -_ - _ \
" \__ \ |_) | (_| | (_| __/_____\ V /| | | | | | |
" |___/ .__/ \__._|\___\___| \_/ |_|_| |_| |_|
" |_|
"
" Copyright (c) 2017 Liu-Cheng Xu & Contributors
"
" You can customize space-vim with .spacevim
" and don't have to take care of this file.
"
" Author: Liu-Cheng Xu <xuliuchengxlc@gmail.com>
" URL: https://github.com/liuchengxu/space-vim
" License: MIT
scriptencoding utf-8
let g:spacevim = get(g:, 'spacevim', {})
let g:spacevim.base = fnamemodify(resolve(expand('<sfile>:p')),':h')
let g:spacevim.version = '0.9.0'
" Identify platform {
let g:spacevim.os = {}
let g:spacevim.os.mac = has('macunix')
let g:spacevim.os.linux = has('unix') && !has('macunix') && !has('win32unix')
let g:spacevim.os.windows = has('win32')
" }
" Windows Compatible {
" On Windows, also use '.vim' instead of 'vimfiles'; this makes synchronization
" across (heterogeneous) systems easier.
if g:spacevim.os.windows
set runtimepath=$HOME/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,$HOME/.vim/after
endif
" }
let &runtimepath = &runtimepath . ',' . g:spacevim.base . '/core'
call spacevim#bootstrap()