-
Notifications
You must be signed in to change notification settings - Fork 0
/
.spacevim
85 lines (69 loc) · 2.27 KB
/
.spacevim
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
" Let vim and neovim share the same plugin directory
let g:spacevim_plug_home = '~/.vim/plugged'
" Shipped layers in
let g:spacevim_layers = [
\ 'fzf', 'ctrlp', 'better-defaults', 'airline',
\ 'file-manager',
\ 'programming', 'editing', 'auto-completion', 'text-align',
\ 'ruby', 'html',
\ 'which-key',
\ 'git',
\ 'syntax-checking'
\ ]
" Private plugins
function! UserInit()
Plug 'shime/vim-livedown'
Plug 'thiagoalessio/rainbow_levels.vim', { 'on': 'RainbowLevelsToggle' }
Plug 'mbbill/undotree'
Plug 'chrisbra/NrrwRgn'
Plug 'morhetz/gruvbox'
endfunction
" Override the default settings
function! UserConfig()
set wrap
set linebreak
" Italics for comments
let g:one_allow_italics = 1
set background=dark
colorscheme gruvbox
hi Comment cterm=italic ctermfg=249
" https://github.com/liuchengxu/space-vim/issues/184#issuecomment-314318529
set <F20>=
set <F21>=
" Persistent undo
set undofile
set undodir=~/.vimundo
" To spell check
au BufNewFile,BufRead COMMIT_EDITMSG set spell " git commit
au BufNewFile,BufRead *.md set spell " markdown
" Underline misspelled words
hi clear SpellBad
hi SpellBad ctermfg=1 ctermbg=7 cterm=bold
" Set text width for commit messages
au FileType gitcommit set tw=72
" Crlp custom configuration
let g:ctrlp_by_filename = 0
let g:ctrlp_working_path_mode = 'rc'
let g:ctrlp_regexp = 0
" Rainbow indent
map <leader>l :RainbowLevelsToggle<cr>
" Set fzf colors
" See: https://github.com/junegunn/fzf/wiki/Color-schemes
" See:
" https://github.com/liuchengxu/space-vim/blob/5d290840f193fafc87482e68a59a9479ae428dcb/layers/%2Btools/fzf/config.vim#L13
let g:fzf_colors = {
\ 'fg': ['242'],
\ 'bg': ['233'],
\ 'hl': ['65'],
\ 'fg+': ['15', 'Normal'],
\ 'bg+': ['255', 'Normal'],
\ 'hl+': ['108'],
\ 'info': ['108'],
\ 'prompt': ['109'],
\ 'pointer': ['168'],
\ 'marker': ['168'],
\ 'spinner': ['Statement'],
\ 'header': ['Number'],
\ }
let g:fzf_layout = { 'down': '~25%' }
endfunction