-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspacevim
More file actions
55 lines (43 loc) · 1.38 KB
/
Copy pathspacevim
File metadata and controls
55 lines (43 loc) · 1.38 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
" Let Vim and NeoVim shares the same plugin directory.
" Comment it out if you don't like
let g:spacevim_plug_home = '~/.vim/plugged'
" Enable the existing layers in space-vim
function! Layers()
" Default layers
Layer 'fzf'
Layer 'unite'
Layer 'better-defaults'
Layer 'file-manager'
Layer 'ycmd'
Layer 'editing'
Layer 'programming'
Layer 'javascript'
Layer 'airline'
endfunction
" Add your own plugins
function! UserInit()
" The default leader key is space key.
" Uncomment the line below and modify "<\Space>" if you prefer another
" let g:spacevim_leader = "<\Space>"
" The default local leader key is comma.
" Uncomment the line below and modify ',' if you prefer another
" let g:spacevim_localleader = ','
" Install personal plugins
" Plug 'hecal3/vim-leader-guide'
Plug 'ryanoasis/vim-devicons'
endfunction
" Override the default settings as well as adding extras
function! UserConfig()
" If you have installed the powerline fonts and want to enable airline layer
" let g:airline_powerline_fonts=1
" Use gui colors in terminal if available
if has('termguicolors')
set termguicolors
if g:spacevim_tmux
" If use vim inside tmux, see https://github.com/vim/vim/issues/993
" set Vim-specific sequences for RGB colors
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
endif
endif
endfunction