-
Notifications
You must be signed in to change notification settings - Fork 0
/
core.vim
74 lines (59 loc) · 1.84 KB
/
core.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
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
if &compatible
set nocompatible
endif
" Set main configuration directory as parent directory
let $VIM_PATH = fnamemodify(resolve(expand('<sfile>:p')), ':h:h')
" Set data/cache directory as $XDG_CACHE_HOME/nvim
if has("nvim")
let $DATA_PATH =
\ expand(($XDG_CACHE_HOME ? $XDG_CACHE_HOME : '~/.cache') . '/nvim')
else
let $DATA_PATH =
\ expand(($XDG_CACHE_HOME ? $XDG_CACHE_HOME : '~/.cache') . '/vim')
endif
" LSP 客服端 coc nivm_lsp
let g:registered_lsp = "coc"
" 补全插件 coc or ddc or cmp
let g:registered_completion = ""
" 代码片段 vnsip ultisnip snippy
let g:registered_snippet = ""
" Disable vim distribution plugins
let g:loaded_gzip = 1
let g:loaded_tar = 1
let g:loaded_tarPlugin = 1
let g:loaded_zip = 1
let g:loaded_zipPlugin = 1
let g:loaded_getscript = 1
let g:loaded_getscriptPlugin = 1
let g:loaded_vimball = 1
let g:loaded_vimballPlugin = 1
let g:loaded_matchit = 1
let g:loaded_matchparen = 1
let g:loaded_2html_plugin = 1
let g:loaded_logiPat = 1
let g:loaded_rrhelper = 1
let g:loaded_netrw = 1
let g:loaded_netrwPlugin = 1
let g:loaded_netrwSettings = 1
let g:loaded_netrwFileHandlers = 1
" Initialize base requirements
if has('vim_starting')
" Use spacebar as leader and ; as secondary-leader
" Required before loading plugins!
let g:mapleader="\<Space>"
" Release keymappings prefixes, evict entirely for use of plug-ins.
nnoremap <Space> <Nop>
xnoremap <Space> <Nop>
nnoremap , <Nop>
xnoremap , <Nop>
nnoremap ; <Nop>
xnoremap ; <Nop>
endif
call initself#source_file($VIM_PATH,'core/dein.vim')
call initself#source_file($VIM_PATH,'core/general.vim')
call initself#source_file($VIM_PATH,'core/event.vim')
call initself#source_file($VIM_PATH,'core/pmap.vim')
call initself#source_file($VIM_PATH,'core/vmap.vim')
call theme#theme_init()
set secure
" vim: set ts=2 sw=2 tw=80 noet :