.vimrc

branch
mhoward-lt
changeset 110
f29fe3c90d63
parent 109
14b6da5839f0
child 111
99cc7b567195
equal deleted inserted replaced
108:f7fa87987e4f 110:f29fe3c90d63
57 57
58 Plugin 'Shougo/vimproc.vim' 58 Plugin 'Shougo/vimproc.vim'
59 Plugin 'Shougo/unite.vim' 59 Plugin 'Shougo/unite.vim'
60 Plugin 'Shougo/vimshell.vim' 60 Plugin 'Shougo/vimshell.vim'
61 Plugin 'Shougo/vimfiler.vim' 61 Plugin 'Shougo/vimfiler.vim'
62 Plugin 'Shougo/neocomplcache.vim'
63 Plugin 'sjl/gundo.vim' 62 Plugin 'sjl/gundo.vim'
64 Plugin 'majutsushi/tagbar' 63 Plugin 'majutsushi/tagbar'
65 Plugin 'godlygeek/tabular' 64 Plugin 'godlygeek/tabular'
66 Plugin 'tomtom/tcomment_vim' 65 Plugin 'tomtom/tcomment_vim'
67 Plugin 'tpope/vim-unimpaired' 66 Plugin 'tpope/vim-unimpaired'
68 Plugin 'tpope/vim-endwise' 67 Plugin 'tpope/vim-endwise'
68
69 Plugin 'Shougo/neocomplcache.vim'
70 Plugin 'c9s/perlomni.vim'
69 71
70 Plugin 'tpope/vim-fugitive' 72 Plugin 'tpope/vim-fugitive'
71 Plugin 'ludovicchabant/vim-lawrencium' 73 Plugin 'ludovicchabant/vim-lawrencium'
72 Plugin 'mhinz/vim-signify' 74 Plugin 'mhinz/vim-signify'
73 75
260 262
261 " }}} 263 " }}}
262 264
263 265
264 " Plugin settings {{{ 266 " Plugin settings {{{
265 " > Gundo 267 ">> Gundo
266 " I prefer python3 on windows if I have to use it. 268 " I prefer python3 on windows if I have to use it.
267 if on_windows == 1 269 if on_windows == 1
268 let g:gundo_prefer_python3=1 270 let g:gundo_prefer_python3=1
269 endif 271 endif
270 272
271 " > Tagbar 273 ">> Tagbar
272 if on_windows == 1 274 if on_windows == 1
273 let g:tagbar_ctags_bin = 'C:\Users\mhoward\bin\ctags.exe' 275 let g:tagbar_ctags_bin = 'C:\Users\mhoward\bin\ctags.exe'
274 endif 276 endif
275 277
276 let g:tagbar_autoclose = 1 278 let g:tagbar_autoclose = 1
290 \ ], 292 \ ],
291 \ 'deffile' : '$MYVIM/ctags/perl.cnf' 293 \ 'deffile' : '$MYVIM/ctags/perl.cnf'
292 \ } 294 \ }
293 295
294 296
295 " > Unite 297 ">> Unite
296 " call unite#filters#matcher_default#use(['matcher_fuzzy']) 298 " call unite#filters#matcher_default#use(['matcher_fuzzy'])
297 call unite#filters#sorter_default#use(['sorter_rank']) 299 call unite#filters#sorter_default#use(['sorter_rank'])
298 " let g:unite_source_history_yank_enable = 1 300 " let g:unite_source_history_yank_enable = 1
299 301
300 if executable('ag') 302 if executable('ag')
301 let g:unite_source_grep_command = 'ag' 303 let g:unite_source_grep_command = 'ag'
302 let g:unite_source_grep_default_opts = '--nogroup --nocolor --column' 304 let g:unite_source_grep_default_opts = '--nogroup --nocolor --column'
303 let g:unite_source_grep_recursive_opt = '' 305 let g:unite_source_grep_recursive_opt = ''
304 endif 306 endif
305 307
306 " > vimfiler 308 ">> vimfiler
307 let g:vimfiler_as_default_explorer = 1 309 let g:vimfiler_as_default_explorer = 1
308 autocmd FileType vimfiler nmap <buffer> <2-LeftMouse> <Plug>(vimfiler_edit_file) 310 autocmd FileType vimfiler nmap <buffer> <2-LeftMouse> <Plug>(vimfiler_edit_file)
309 311
310 " > Airline 312 ">> Airline
311 let g:airline#extensions#whitespace#enabled = 0 313 let g:airline#extensions#whitespace#enabled = 0
312 314
313 " > Signify 315 ">> Signify
314 let g:signify_disable_by_default = 1 316 let g:signify_disable_by_default = 1
315 let g:signify_vcs_list = [ 'git', 'hg' ] 317 let g:signify_vcs_list = [ 'git', 'hg' ]
316 318
317 let g:signify_mapping_next_hunk = '<leader>gj' 319 let g:signify_mapping_next_hunk = '<leader>gj'
318 let g:signify_mapping_prev_hunk = '<leader>gk' 320 let g:signify_mapping_prev_hunk = '<leader>gk'
319 let g:signify_mapping_toggle = '<leader>gt' 321 let g:signify_mapping_toggle = '<leader>gt'
320 322
321 " > neocomplcache 323 ">> neocomplcache
322 " Disable AutoComplPop. 324 " Disable AutoComplPop.
323 let g:acp_enableAtStartup = 0 325 let g:acp_enableAtStartup = 0
324 326
325 " Use neocomplcache. 327 " Use neocomplcache.
326 let g:neocomplcache_enable_at_startup = 1 328 let g:neocomplcache_enable_at_startup = 1
327 let g:neocomplcache_enable_smart_case = 1 329 let g:neocomplcache_enable_smart_case = 1
328 let g:neocomplcache_min_syntax_length = 3 330 let g:neocomplcache_min_syntax_length = 3
331
332 if !exists('g:neocomplcache_omni_patterns')
333 let g:neocomplcache_omni_patterns = {}
334 endif
335
336 "Required to get ruby omni
337 let g:neocomplcache_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::'
338 "Enabling the below allows module completion from CPAN, jeez
339 " let g:neocomplcache_omni_patterns.perl = '\h\w*->\h\w*\|\h\w*::'
329 340
330 " }}} 341 " }}}
331 342
332 343
333 " Local stuff, finish up 344 " Local stuff, finish up

mercurial