-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.vimrc
More file actions
85 lines (67 loc) · 1.9 KB
/
.vimrc
File metadata and controls
85 lines (67 loc) · 1.9 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
" 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')
if g:uname_kernel_name ==# 'Darwin' || (g:uname_kernel_name ==# 'Linux' && g:uname_machine ==# 'x86_64')
call LoadFile('notify')
endif
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-extensions')
call LoadFile('coc-notify')
endif
call LoadFile('shada-local')
if g:uname_kernel_name ==# 'Darwin'
if g:uname_machine ==# 'arm64'
call LoadFile('provider-macos-arm64')
else
call LoadFile('provider-macos-x86')
endif
endif
if g:uname_kernel_name ==# 'Linux'
call LoadFile('provider-linux')
endif
" vim: set filetype=vim ts=2 sw=2 tw=0 noet :