-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugins.vim
378 lines (282 loc) · 6.5 KB
/
plugins.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
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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
"
" Global Configuration
"
" Map space to leader.
let mapleader = "\<Space>"
let maplocalleader = "\\"
" Set Python host.
if empty($VIM_PYTHON)
let g:python_host_prog = '/bin/python2'
else
let g:python_host_prog = $VIM_PYTHON
endif
" Set Python 3 host.
if empty($VIM_PYTHON3)
let g:python3_host_prog = '/bin/python3'
else
let g:python3_host_prog = $VIM_PYTHON3
endif
" Libraries
Plug 'konfekt/fastfold'
Plug 'tpope/vim-repeat'
" Sensible Defaults
Plug 'tpope/vim-sensible'
" EditorConfig
Plug 'editorconfig/editorconfig-vim'
" Prompt and Statusline
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'edkolev/promptline.vim'
Plug 'edkolev/tmuxline.vim'
" Disable promptline and tmuxline extensions.
let g:airline#extensions#tmuxline#enabled = 0
let g:airline#extensions#promptline#enabled = 0
" Themes and Colors
Plug 'chriskempson/base16-vim'
Plug 'altercation/vim-colors-solarized'
Plug 'tomasr/molokai'
Plug 'jnurmine/zenburn'
"
" Editor
"
" Syntax
Plug 'cohama/lexima.vim'
Plug 'alvan/vim-closetag'
Plug 'chrisbra/colorizer'
Plug 'luochen1990/rainbow'
" Text Objects
Plug 'kana/vim-textobj-user'
\ | Plug 'kana/vim-textobj-entire'
" Sneak
Plug 'justinmk/vim-sneak'
" Marks
Plug 'kshenoy/vim-signature'
" Macros
Plug 'bronson/vim-visual-star-search'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-unimpaired'
" Whitespace
Plug 'ntpeters/vim-better-whitespace'
" Clipboard
Plug 'svermeulen/vim-easyclip'
" Buffer
Plug 'moll/vim-bbye'
"
" Internal Interfaces
"
" Lists
Plug 'milkypostman/vim-togglelist'
" Undo
Plug 'mbbill/undotree'
" Ctags
Plug 'majutsushi/tagbar'
" Session
Plug 'xolox/vim-misc'
\ | Plug 'xolox/vim-session'
" Unicode
let unicode_src = 'http://unicode.org/Public/UNIDATA/UnicodeData.txt'
let unicode_dest = './autoload/unicode/UnicodeData.txt'
Plug 'chrisbra/unicode.vim',
\ { 'do': join(['curl --create-dirs -o', unicode_dest, unicode_src], ' ')}
" Autocompletion
function! DoRemote(arg)
UpdateRemotePlugins
endfunction
Plug 'shougo/deoplete.nvim',
\ { 'do': function('DoRemote') }
Plug 'shougo/neoinclude.vim'
Plug 'sirver/ultisnips'
Plug 'rxrc/vim-snippets',
\ { 'branch': 'rxrc' }
" Unite.vim
Plug 'shougo/vimproc.vim',
\ { 'do': 'make \|\| gmake' }
\ | Plug 'shougo/unite.vim'
\ | Plug 'shougo/neoyank.vim'
\ | Plug 'shougo/vimfiler.vim'
"
" External Interfaces
"
" Neomake
Plug 'neomake/neomake'
" Terminal
Plug 'kassio/neoterm'
Plug 'janko-m/vim-test'
" Autoformat
Plug 'chiel92/vim-autoformat'
" Network
Plug 'eiginn/netrw'
" Git
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
" Documentation
Plug 'keith/investigate.vim'
" Thesaurus
Plug 'ron89/thesaurus_query.vim'
" Projectionist
Plug 'tpope/vim-projectionist'
" Portkey
Plug 'dsawardekar/portkey'
" tmux
Plug 'christoomey/vim-tmux-navigator'
" Grepper
Plug 'mhinz/vim-grepper'
" fzf
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
"
" Initialization Settings
"
"
" Language Interfaces
"
" Language Groups
let language_groups = {
\ 'web': ['css', 'html', 'html.handlebars', 'tag',
\ 'javascript.jsx', 'liquid', 'sass', 'scss']
\ }
" Vim-polyglot
Plug 'sheerun/vim-polyglot'
" API Blueprint
Plug 'kylef/apiblueprint.vim',
\ { 'for': 'apiblueprint' }
" Clojure
Plug 'tpope/vim-fireplace',
\ { 'for': 'clojure' }
Plug 'tpope/vim-salve',
\ { 'for': 'clojure' }
Plug 'guns/vim-sexp',
\ { 'for': 'clojure' }
Plug 'tpope/vim-sexp-mappings-for-regular-people',
\ { 'for': 'clojure' }
Plug 'guns/vim-clojure-highlight',
\ { 'for': 'clojure' }
Plug 'venantius/vim-cljfmt',
\ { 'for': 'clojure' }
Plug 'venantius/vim-eastwood',
\ { 'for': 'clojure' }
Plug 'severeoverfl0w/async-clj-omni',
\ { 'for': 'clojure' }
" Flow
Plug 'flowtype/vim-flow',
\ { 'for': 'javascript' }
" Haskell
Plug 'bitc/vim-hdevtools',
\ { 'for': 'haskell' }
" JavaScript
Plug 'isruslan/vim-es6',
\ { 'for': 'javascript' }
Plug 'ternjs/tern_for_vim',
\ { 'for': 'javascript' }
Plug 'carlitux/deoplete-ternjs',
\ { 'for': 'javascript' }
" LaTeX
Plug 'lervag/vimtex',
\ { 'for': 'tex' }
" Python
Plug 'tmhedberg/simpylfold',
\ { 'for': 'python' }
Plug 'zchee/deoplete-jedi',
\ { 'for': 'python' }
\ | Plug 'lambdalisue/vim-pyenv',
\ { 'for': 'python' }
" Riot
Plug 'ryym/vim-riot',
\ { 'for': 'riot' }
" Ruby
Plug 'tpope/vim-rbenv',
\ { 'for': 'ruby' }
Plug 'tpope/vim-bundler',
\ { 'for': 'ruby' }
Plug 'danchoi/ri.vim',
\ { 'for': 'ruby' }
Plug 'fishbullet/deoplete-ruby',
\ { 'for': 'ruby' }
" TypeScript
Plug 'mhartington/deoplete-typescript',
\ { 'for': 'typescript' }
" Web
Plug 'othree/csscomplete.vim',
\ { 'for': language_groups['web'] }
Plug 'mattn/emmet-vim',
\ { 'for': language_groups['web'] }
"
" vim-airline
" Disable Powerline.
let g:powerline_loaded = 1
" Use Powerline fonts for vim-airline.
let g:airline_powerline_fonts = 1
" Enable tabline.
let g:airline#extensions#tabline#enabled = 1
"
" closetag.vim
" Enable for specific file types.
let g:closetag_filenames = join([
\ '*.html',
\ '*.xhtml',
\ '*.phtml',
\ '*.hbs',
\ '*.js',
\ '*.jsx'
\ ], ',')
"
" colorizer
" Enable colors for specific file types.
let g:colorizer_auto_filetype = join([
\ 'css',
\ 'html',
\ 'html.handlebars',
\ 'sass',
\ 'scss'
\ ], ',')
"
" rainbow
" Enable rainbow parentheses.
let g:rainbow_active = 1
"
" vim-signature
" Set signature leader.
let g:SignatureMap = { 'Leader': "\<Leader\>;" }
"
" vim-commentary
" Disable \\ commentary maps.
let g:commentary_map_backslash = 0
"
" deoplete
" Enable deoplete.
let g:deoplete#enable_at_startup = 1
" Complete file paths relative to the current buffer.
let g:deoplete#file#enable_buffer_path = 1
" Initialize deoplete globals.
if !exists('g:deoplete#keyword_patterns')
let g:deoplete#keyword_patterns = {}
endif
if !exists('g:deoplete#sources')
let g:deoplete#sources = {}
endif
if !exists('g:deoplete#omni_patterns')
let g:deoplete#omni_patterns = {}
endif
"
" fzf
" Set fzf command prefix.
let g:fzf_command_prefix = 'Fzf'
" Set default fzf command.
if executable('fzf') && executable('ag')
let $FZF_DEFAULT_COMMAND = 'ag --hidden --ignore .git -g ""'
endif
"
" Vim-polyglot
" Disable select language packs.
let g:polyglot_disabled = [
\ 'latex'
\ ]
" Load jsx syntax for normal javascript files.
let g:jsx_ext_required = 0
" Enable syntax highlighting for Flow.
let g:javascript_plugin_flow = 1
"
" Ruby
" Disable default ri.vim mappings.
let g:ri_no_mappings = 1