-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimrc
42 lines (33 loc) · 901 Bytes
/
vimrc
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
41
42
" Load main configuration?
let g:vimrc_load = 1
" Load plugins?
let g:vimrc_plugins = 1
" Use UTF-8 chars?
let g:vimrc_utf8 = 1
" =======================================================================================
if g:vimrc_plugins == 0
set noloadplugins
endif
if has("win64") || has("win32")
if g:vimrc_load == 1
source $HOME/vimfiles/vimrc-full
if g:vimrc_plugins == 1
for rcfile in split(globpath($HOME."/vimfiles/pack/*/config", "*.vim"), '\n')
execute('source '.rcfile)
endfor
endif
endif
else
if g:vimrc_load == 1
source $HOME/.vim/vimrc-full
if g:vimrc_plugins == 1
for rcfile in split(globpath($HOME."/.vim/pack/*/config", "*.vim"), '\n')
execute('source '.rcfile)
endfor
endif
endif
endif
" =======================================================================================
unlet g:vimrc_load
unlet g:vimrc_plugins
unlet g:vimrc_utf8