-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
76 lines (62 loc) · 1.82 KB
/
.vimrc
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
" vimrc
"
" " Only for nvim
if !has('nvim')
set ttymouse=xterm2
endif
" Flags {{{
let s:use_dein = 1
" }}}
" Filetype Settings
source ~/.config/nvim/ft.rc.vim
"""""""""""""""""""""""""""""""""""""""
" Dein settings
"""""""""""""""""""""""""""""""""""""""
" Dein {{{
let s:vimdir = $HOME . '/.vim'
let s:dein_dir = s:vimdir . '/dein'
let s:dein_github = s:dein_dir . '/repos/github.com'
let s:dein_repo_name = "Shougo/dein.vim"
let s:dein_repo_dir = s:dein_github . '/' . s:dein_repo_name
let s:rsense_dir = $HOME . '/.rbenv/shims/rsense'
let s:dein_toml = '~/.config/nvim/dein.toml'
let s:dein_lazy_toml = '~/.config/nvim/deinlazy.toml'
let s:dein_ft_toml = '~/.config/nvim/deinft.toml'
let s:dein_color_toml = '~/.config/nvim/deincol.toml'
let s:lsp_toml = '~/.config/nvim/plugins/lsp.toml'
" Install dein automatically
if !isdirectory(s:dein_repo_dir)
call system('git clone https://github.com/Shougo/dein.vim ' . shellescape(s:dein_repo_dir))
endif
if &compatible
set nocompatible
endif
let &runtimepath = &runtimepath . "," . s:dein_repo_dir
if dein#load_state(s:dein_dir)
call dein#begin(s:dein_dir)
call dein#load_toml(s:dein_toml, {'lazy': 0})
call dein#load_toml(s:dein_color_toml, {'lazy': 0})
call dein#load_toml(s:dein_lazy_toml, {'lazy': 1})
" call dein#load_toml(s:lsp_toml, {'lazy': 1})
call dein#load_toml(s:dein_ft_toml)
call dein#end()
call dein#save_state()
endif
if dein#check_install()
call dein#install()
endif
" }}}
" enable plugin, indent
filetype plugin indent on
" }}}
" gui configuration
highlight Visual term=reverse cterm=reverse guibg=Grey
highlight IndentGuidesOdd ctermbg=240
highlight IndentGuidesEven ctermbg=238
" Settings
source ~/.config/nvim/settings.rc.vim
" }}}
" Check whether plugins should be installed or not
if has('vim_starting') && dein#check_install()
call dein#install()
endif