forked from skywind3000/vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
42 lines (30 loc) · 802 Bytes
/
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
let s:home = fnamemodify(resolve(expand('<sfile>:p')), ':h')
command! -nargs=1 IncScript exec 'so '. fnameescape(s:home."/<args>")
exec 'set rtp+='.s:home
exec 'set rtp+=~/.vim'
IncScript init/viminit.vim
IncScript init/vimmake.vim
VimmakeKeymap
IncScript init/config.vim
IncScript init/ignores.vim
IncScript init/tools.vim
IncScript init/keymaps.vim
IncScript init/plugins.vim
IncScript init/status.vim
IncScript init/misc.vim
IncScript init/gui.vim
IncScript init/menu.vim
IncScript init/unix.vim
if has('nvim') == 0
let name = expand('~/.vim/local.vim')
else
if $XDG_CONFIG_HOME != ''
let name = $XDG_CONFIG_HOME . '/nvim/local.vim'
else
let name = expand('~/.config/nvim/local.vim')
endif
endif
if filereadable(name)
exec 'source ' . fnameescape(name)
endif
call module#init()