-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
253 lines (228 loc) · 9.02 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
syntax on
filetype off
set nocompatible
set number
set nowrap
set showmode
set tw=80
set smartcase
set smarttab
set smartindent
set autoindent
set softtabstop=2
set shiftwidth=2
set expandtab
set incsearch
set mouse=a
set history=1000
set clipboard=unnamedplus,autoselect
set completeopt=menuone,menu,longest
set wildignore+=*\\tmp\\*,*.swp,*.swo,*.zip,.git,.cabal-sandbox
set wildmode=longest,list,full
set wildmenu
set completeopt+=longest
set t_Co=256
set cmdheight=1
map <Leader>s :SyntasticToggleMode<CR>
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
map <silent> tw :GhcModTypeInsert<CR>
map <silent> ts :GhcModSplitFunCase<CR>
map <silent> tq :GhcModType<CR>
map <silent> te :GhcModTypeClear<CR>
let g:SuperTabDefaultCompletionType = '<c-x><c-o>'
if has("gui_running")
imap <c-space> <c-r>=SuperTabAlternateCompletion("\<lt>c-x>\<lt>c-o>")<cr>
else " no gui
if has("unix")
inoremap <Nul> <c-r>=SuperTabAlternateCompletion("\<lt>c-x>\<lt>c-o>")<cr>
endif
endif
let g:haskellmode_completion_ghc = 1
autocmd FileType haskell setlocal omnifunc=necoghc#omnifunc
map <Leader>n :NERDTreeToggle<CR>
let g:haskell_tabular = 1
vmap a= :Tabularize /=<CR>
vmap a; :Tabularize /::<CR>
vmap a- :Tabularize /-><CR>
map <silent> <Leader>t :CtrlP()<CR>
noremap <leader>b<space> :CtrlPBuffer<cr>
let g:ctrlp_custom_ignore = '\v[\/]dist$'
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'L9'
call vundle#end()
filetype plugin indent on
execute pathogen#infect()
hi clear
set background=dark
if exists("syntax_on")
syntax reset
endif
" Colorscheme name
let colors_name = "wal"
" highlight groups {{{
set t_Co=16
hi Normal ctermbg=NONE ctermfg=7 cterm=NONE
hi NonText ctermbg=NONE ctermfg=0 cterm=NONE
hi Comment ctermbg=NONE ctermfg=8 cterm=NONE
hi Constant ctermbg=NONE ctermfg=3 cterm=NONE
hi Error ctermbg=1 ctermfg=7 cterm=NONE
hi Identifier ctermbg=NONE ctermfg=1 cterm=NONE
hi Ignore ctermbg=8 ctermfg=0 cterm=NONE
hi PreProc ctermbg=NONE ctermfg=3 cterm=NONE
hi Special ctermbg=NONE ctermfg=6 cterm=NONE
hi Statement ctermbg=NONE ctermfg=1 cterm=NONE
hi String ctermbg=NONE ctermfg=2 cterm=NONE
hi Number ctermbg=NONE ctermfg=3 cterm=NONE
hi Todo ctermbg=8 ctermfg=3 cterm=NONE
hi Type ctermbg=NONE ctermfg=3 cterm=NONE
hi Underlined ctermbg=NONE ctermfg=1 cterm=underline
hi StatusLine ctermbg=7 ctermfg=0 cterm=NONE
hi StatusLineNC ctermbg=NONE ctermfg=NONE cterm=NONE
hi TabLine ctermbg=NONE ctermfg=8 cterm=NONE
hi TabLineFill ctermbg=NONE ctermfg=8 cterm=NONE
hi TabLineSel ctermbg=4 ctermfg=0 cterm=NONE
hi TermCursorNC ctermbg=3 ctermfg=0 cterm=NONE
hi VertSplit ctermbg=NONE ctermfg=NONE cterm=NONE
hi Title ctermbg=NONE ctermfg=4 cterm=NONE
hi CursorLine ctermbg=NONE ctermfg=8 cterm=NONE
hi LineNr ctermbg=NONE ctermfg=8 cterm=NONE
hi CursorLineNr ctermbg=NONE ctermfg=8 cterm=NONE
hi helpLeadBlank ctermbg=NONE ctermfg=7 cterm=NONE
hi helpNormal ctermbg=NONE ctermfg=7 cterm=NONE
hi Visual ctermbg=8 ctermfg=0 cterm=NONE
hi VisualNOS ctermbg=NONE ctermfg=1 cterm=NONE
hi Pmenu ctermbg=8 ctermfg=7 cterm=NONE
hi PmenuSbar ctermbg=6 ctermfg=7 cterm=NONE
hi PmenuSel ctermbg=4 ctermfg=0 cterm=NONE
hi PmenuThumb ctermbg=8 ctermfg=8 cterm=NONE
hi FoldColumn ctermbg=NONE ctermfg=7 cterm=NONE
hi Folded ctermbg=NONE ctermfg=8 cterm=NONE
hi WildMenu ctermbg=2 ctermfg=0 cterm=NONE
hi SpecialKey ctermbg=NONE ctermfg=8 cterm=NONE
hi DiffAdd ctermbg=NONE ctermfg=2 cterm=NONE
hi DiffChange ctermbg=NONE ctermfg=8 cterm=NONE
hi DiffDelete ctermbg=NONE ctermfg=1 cterm=NONE
hi DiffText ctermbg=NONE ctermfg=4 cterm=NONE
hi IncSearch ctermbg=3 ctermfg=0 cterm=NONE
hi Search ctermbg=3 ctermfg=0 cterm=NONE
hi Directory ctermbg=NONE ctermfg=4 cterm=NONE
hi MatchParen ctermbg=8 ctermfg=0 cterm=NONE
hi ColorColumn ctermbg=4 ctermfg=4 cterm=NONE
hi signColumn ctermbg=NONE ctermfg=4 cterm=NONE
hi ErrorMsg ctermbg=NONE ctermfg=8 cterm=NONE
hi ModeMsg ctermbg=NONE ctermfg=2 cterm=NONE
hi MoreMsg ctermbg=NONE ctermfg=2 cterm=NONE
hi Question ctermbg=NONE ctermfg=4 cterm=NONE
hi WarningMsg ctermbg=1 ctermfg=0 cterm=NONE
hi Cursor ctermbg=NONE ctermfg=8 cterm=NONE
hi Structure ctermbg=NONE ctermfg=5 cterm=NONE
hi CursorColumn ctermbg=8 ctermfg=7 cterm=NONE
hi ModeMsg ctermbg=NONE ctermfg=7 cterm=NONE
hi SpellBad ctermbg=1 ctermfg=7 cterm=underline
hi SpellCap ctermbg=NONE ctermfg=4 cterm=underline
hi SpellLocal ctermbg=NONE ctermfg=5 cterm=underline
hi SpellRare ctermbg=NONE ctermfg=6 cterm=underline
hi Boolean ctermbg=NONE ctermfg=5 cterm=NONE
hi Character ctermbg=NONE ctermfg=1 cterm=NONE
hi Conditional ctermbg=NONE ctermfg=5 cterm=NONE
hi Define ctermbg=NONE ctermfg=5 cterm=NONE
hi Delimiter ctermbg=NONE ctermfg=5 cterm=NONE
hi Float ctermbg=NONE ctermfg=5 cterm=NONE
hi Include ctermbg=NONE ctermfg=4 cterm=NONE
hi Keyword ctermbg=NONE ctermfg=5 cterm=NONE
hi Label ctermbg=NONE ctermfg=3 cterm=NONE
hi Operator ctermbg=NONE ctermfg=7 cterm=NONE
hi Repeat ctermbg=NONE ctermfg=3 cterm=NONE
hi SpecialChar ctermbg=NONE ctermfg=5 cterm=NONE
hi Tag ctermbg=NONE ctermfg=3 cterm=NONE
hi Typedef ctermbg=NONE ctermfg=3 cterm=NONE
hi vimUserCommand ctermbg=NONE ctermfg=1 cterm=BOLD
hi link vimMap vimUserCommand
hi link vimLet vimUserCommand
hi link vimCommand vimUserCommand
hi link vimFTCmd vimUserCommand
hi link vimAutoCmd vimUserCommand
hi link vimNotFunc vimUserCommand
hi vimNotation ctermbg=NONE ctermfg=4 cterm=NONE
hi vimMapModKey ctermbg=NONE ctermfg=4 cterm=NONE
hi vimBracket ctermbg=NONE ctermfg=7 cterm=NONE
hi vimCommentString ctermbg=NONE ctermfg=8 cterm=NONE
hi htmlLink ctermbg=NONE ctermfg=1 cterm=underline
hi htmlBold ctermbg=NONE ctermfg=3 cterm=NONE
hi htmlItalic ctermbg=NONE ctermfg=5 cterm=NONE
hi htmlEndTag ctermbg=NONE ctermfg=7 cterm=NONE
hi htmlTag ctermbg=NONE ctermfg=7 cterm=NONE
hi htmlTagName ctermbg=NONE ctermfg=1 cterm=BOLD
hi htmlH1 ctermbg=NONE ctermfg=7 cterm=BOLD
hi link htmlH2 htmlH1
hi link htmlH3 htmlH1
hi link htmlH4 htmlH1
hi link htmlH5 htmlH1
hi link htmlH6 htmlH1
hi cssMultiColumnAttr ctermbg=NONE ctermfg=2 cterm=NONE
hi link cssFontAttr cssMultiColumnAttr
hi link cssFlexibleBoxAttr cssMultiColumnAttr
hi cssBraces ctermbg=NONE ctermfg=7 cterm=NONE
hi link cssAttrComma cssBraces
hi cssValueLength ctermbg=NONE ctermfg=7 cterm=NONE
hi cssUnitDecorators ctermbg=NONE ctermfg=7 cterm=NONE
hi cssValueNumber ctermbg=NONE ctermfg=7 cterm=NONE
hi link cssValueLength cssValueNumber
hi cssNoise ctermbg=NONE ctermfg=8 cterm=NONE
hi cssTagName ctermbg=NONE ctermfg=1 cterm=NONE
hi cssFunctionName ctermbg=NONE ctermfg=4 cterm=NONE
hi scssSelectorChar ctermbg=NONE ctermfg=7 cterm=NONE
hi scssAttribute ctermbg=NONE ctermfg=7 cterm=NONE
hi link scssDefinition cssNoise
hi sassidChar ctermbg=NONE ctermfg=1 cterm=NONE
hi sassClassChar ctermbg=NONE ctermfg=5 cterm=NONE
hi sassInclude ctermbg=NONE ctermfg=5 cterm=NONE
hi sassMixing ctermbg=NONE ctermfg=5 cterm=NONE
hi sassMixinName ctermbg=NONE ctermfg=4 cterm=NONE
hi javaScript ctermbg=NONE ctermfg=7 cterm=NONE
hi javaScriptBraces ctermbg=NONE ctermfg=7 cterm=NONE
hi javaScriptNumber ctermbg=NONE ctermfg=5 cterm=NONE
hi markdownAutomaticLink ctermbg=NONE ctermfg=1 cterm=underline
hi link markdownUrl markdownAutomaticLink
hi markdownError ctermbg=NONE ctermfg=7 cterm=NONE
hi markdownCode ctermbg=NONE ctermfg=3 cterm=NONE
hi markdownCodeBlock ctermbg=NONE ctermfg=3 cterm=NONE
hi markdownCodeDelimiter ctermbg=NONE ctermfg=5 cterm=NONE
hi xdefaultsValue ctermbg=NONE ctermfg=7 cterm=NONE
hi rubyInclude ctermbg=NONE ctermfg=4 cterm=NONE
hi rubyDefine ctermbg=NONE ctermfg=5 cterm=NONE
hi rubyFunction ctermbg=NONE ctermfg=4 cterm=NONE
hi rubyStringDelimiter ctermbg=NONE ctermfg=2 cterm=NONE
hi rubyInteger ctermbg=NONE ctermfg=3 cterm=NONE
hi rubyAttribute ctermbg=NONE ctermfg=4 cterm=NONE
hi rubyConstant ctermbg=NONE ctermfg=3 cterm=NONE
hi rubyInterpolation ctermbg=NONE ctermfg=2 cterm=NONE
hi rubyInterpolationDelimiter ctermbg=NONE ctermfg=3 cterm=NONE
hi rubyRegexp ctermbg=NONE ctermfg=6 cterm=NONE
hi rubySymbol ctermbg=NONE ctermfg=2 cterm=NONE
hi rubyTodo ctermbg=NONE ctermfg=8 cterm=NONE
hi rubyRegexpAnchor ctermbg=NONE ctermfg=7 cterm=NONE
hi link rubyRegexpQuantifier rubyRegexpAnchor
hi pythonOperator ctermbg=NONE ctermfg=5 cterm=NONE
hi pythonFunction ctermbg=NONE ctermfg=4 cterm=NONE
hi pythonRepeat ctermbg=NONE ctermfg=5 cterm=NONE
hi pythonStatement ctermbg=NONE ctermfg=1 cterm=Bold
hi pythonBuiltIn ctermbg=NONE ctermfg=4 cterm=NONE
hi phpMemberSelector ctermbg=NONE ctermfg=7 cterm=NONE
hi phpComparison ctermbg=NONE ctermfg=7 cterm=NONE
hi phpParent ctermbg=NONE ctermfg=7 cterm=NONE
hi cOperator ctermbg=NONE ctermfg=6 cterm=NONE
hi cPreCondit ctermbg=NONE ctermfg=5 cterm=NONE
hi SignifySignAdd ctermbg=NONE ctermfg=2 cterm=NONE
hi SignifySignChange ctermbg=NONE ctermfg=4 cterm=NONE
hi SignifySignDelete ctermbg=NONE ctermfg=1 cterm=NONE
hi NERDTreeDirSlash ctermbg=NONE ctermfg=4 cterm=NONE
hi NERDTreeExecFile ctermbg=NONE ctermfg=7 cterm=NONE