-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
68 lines (53 loc) · 1.49 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
" Load files from ~/.vimrc.d
function! LoadFile(name)
let l:path = $HOME . '/.vimrc.d/' . a:name . '.vim'
if !filereadable(l:path)
echo 'Failed to load: ' . l:path
endif
if filereadable(l:path)
:exec ':source ' . l:path
endif
endfunction
" All the LoadFile() calls are in a very specific order
call LoadFile('misc')
call LoadFile('environment')
call LoadFile('indent')
" call LoadFile('spell')
call LoadFile('buffers')
"call LoadFile('polyglot')
call LoadFile('encoding')
call LoadFile('syntax')
call LoadFile('backup')
call LoadFile('lightline')
if has('termguicolors') && g:color_16m ==# 'true'
call LoadFile('truecolor')
if g:term_program ==# 'iterm2'
call LoadFile('iterm2')
endif
endif
call LoadFile('search')
call LoadFile('scroll')
call LoadFile('titlebar')
call LoadFile('mouse')
call LoadFile('history')
call LoadFile('functions')
call LoadFile('remap')
call LoadFile('whitespace') " whitespace must come before filetype
call LoadFile('filetype')
if has('nvim')
call LoadFile('neovim')
call LoadFile('notify')
endif
if g:uname_kernel_name ==# 'Darwin' || (g:uname_kernel_name ==# 'Linux' && g:uname_machine ==# 'x86_64')
call LoadFile('python')
call LoadFile('ruby')
endif
call LoadFile('javascript')
call LoadFile('modeline')
call LoadFile('fileformat')
call LoadFile('case')
if g:uname_kernel_name ==# 'Darwin' || (g:uname_kernel_name ==# 'Linux' && g:uname_machine ==# 'x86_64')
call LoadFile('coc')
call LoadFile('coc-notify')
endif
" vim: set filetype=vim ts=2 sw=2 tw=0 noet :