-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.vim
42 lines (33 loc) · 1000 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
41
42
" SPDX-License-Identifier: BSD-2-Clause
"
" Copyright 2022 Yunling Zhu <yunling.zhu@outlook.com>
" ----------------------------------------------------------
set nocompatible
" ----------------------------------------------------------
" global utils
" ----------------------------------------------------------
augroup cmd_once
autocmd!
augroup END
function! s:load_all(p)
for f in split(glob(stdpath('config') . '/' . a:p . '/**/*.vim'), '\n')
exe 'source' f
endfor
endfunction
" vim-plug
" ----------------------------------------------------------
call <SID>load_all('pre_plugs')
call plug#begin(stdpath('data') . '/plugged')
call <SID>load_all('plugs')
call plug#end()
call <SID>load_all('post_plugs')
" update
" ----------------------------------------------------------
command! PU PlugUpdate | PlugUpgrade
" function! s:update_plugin()
" PlugUpdate
" PlugUpgrade
" CocUpdate
" endfunction
" command! PU call <SID>update_plugin()
lua require('toggleterm_setup_cfg')