.vimrc

changeset 487
0939aed44277
parent 483
1c0402e3db25
child 498
238a0de521e6
equal deleted inserted replaced
486:608ad4499439 487:0939aed44277
66 Plugin 'c9s/perlomni.vim' 66 Plugin 'c9s/perlomni.vim'
67 Plugin 'rking/ag.vim' 67 Plugin 'rking/ag.vim'
68 68
69 Plugin 'tpope/vim-fugitive' 69 Plugin 'tpope/vim-fugitive'
70 Plugin 'ludovicchabant/vim-lawrencium' 70 Plugin 'ludovicchabant/vim-lawrencium'
71 Plugin 'mhinz/vim-signify'
72 71
73 Plugin 'asciidoc/vim-asciidoc' 72 Plugin 'asciidoc/vim-asciidoc'
74 Plugin 'vim-perl/vim-perl' 73 Plugin 'vim-perl/vim-perl'
75 Plugin 'sheerun/vim-polyglot' 74 Plugin 'sheerun/vim-polyglot'
76 Plugin 'yko/mojo.vim' 75 Plugin 'yko/mojo.vim'
128 " Select last paste 127 " Select last paste
129 map gV `[v`] 128 map gV `[v`]
130 129
131 " clear all interestingwords with \\k since \K is ri.vim 130 " clear all interestingwords with \\k since \K is ri.vim
132 nnoremap <silent> <leader><leader>k :call UncolorAllWords()<CR> 131 nnoremap <silent> <leader><leader>k :call UncolorAllWords()<CR>
133
134 nnoremap <silent> <leader>gt :SignifyToggle<CR>
135 132
136 " K: doc, gK: Doc w/o using syntax hints, gKK: doc current filename 133 " K: doc, gK: Doc w/o using syntax hints, gKK: doc current filename
137 nmap K :call ViewDoc('doc', expand('<cword>'))<CR> 134 nmap K :call ViewDoc('doc', expand('<cword>'))<CR>
138 nmap gKK :call ViewDoc('doc', expand('%'))<CR> 135 nmap gKK :call ViewDoc('doc', expand('%'))<CR>
139 136
330 augroup END 327 augroup END
331 "}}} 328 "}}}
332 329
333 330
334 " Perl type-specific settings {{{ 331 " Perl type-specific settings {{{
335
336 " let perl_fold = 1 " perl fold scanning is slow
337 let perl_include_pod = 1 332 let perl_include_pod = 1
338 let perl_sub_signatures = 1 333 let perl_sub_signatures = 1
339 let perl_sync_dist = 200 334 let perl_sync_dist = 200
340
341 " }}} 335 " }}}
342 336
343 337
344 " Plugin settings {{{ 338 " Plugin settings {{{
345 339
358 ">> Gundo 352 ">> Gundo
359 " I prefer python3 on windows if I have to use it. Needs a dll in path. 353 " I prefer python3 on windows if I have to use it. Needs a dll in path.
360 if s:on_windows == 1 354 if s:on_windows == 1
361 let g:gundo_prefer_python3=1 355 let g:gundo_prefer_python3=1
362 endif 356 endif
363
364 357
365 ">> Tagbar 358 ">> Tagbar
366 if s:on_windows == 1 359 if s:on_windows == 1
367 if executable('ctags') == 0 360 if executable('ctags') == 0
368 " if i haven't installed from chocolatey... 361 " if i haven't installed from chocolatey...
411 \ 'c:callbacks', 404 \ 'c:callbacks',
412 \ 'e:exceptions', 405 \ 'e:exceptions',
413 \ ], 406 \ ],
414 \ } 407 \ }
415 408
416
417 ">> Unite 409 ">> Unite
418 " call unite#filters#matcher_default#use(['matcher_fuzzy']) 410 " call unite#filters#matcher_default#use(['matcher_fuzzy'])
419 call unite#filters#sorter_default#use(['sorter_rank']) 411 call unite#filters#sorter_default#use(['sorter_rank'])
420 412
421 call unite#custom#profile('default', 'context', {'winheight': 10}) 413 call unite#custom#profile('default', 'context', {'winheight': 10})
426 let g:unite_source_grep_recursive_opt = '' 418 let g:unite_source_grep_recursive_opt = ''
427 419
428 let g:unite_source_rec_async_command = ['ag', '-f', '--nocolor', '--nogroup', '-g', ''] 420 let g:unite_source_rec_async_command = ['ag', '-f', '--nocolor', '--nogroup', '-g', '']
429 endif 421 endif
430 422
431
432 ">> vimfiler 423 ">> vimfiler
433 let g:vimfiler_as_default_explorer = 1 424 let g:vimfiler_as_default_explorer = 1
434
435 425
436 ">> Airline 426 ">> Airline
437 let g:airline#extensions#whitespace#enabled = 0 427 let g:airline#extensions#whitespace#enabled = 0
438 let g:airline_powerline_fonts = 0 428 let g:airline_powerline_fonts = 0
439 429
441 let g:bufferline_echo = 0 431 let g:bufferline_echo = 0
442 432
443 "cycle the bufferline with current buf in 2nd-to-last spot 433 "cycle the bufferline with current buf in 2nd-to-last spot
444 let g:bufferline_rotate = 1 434 let g:bufferline_rotate = 1
445 let g:bufferline_fixed_index = -2 435 let g:bufferline_fixed_index = -2
446
447
448 ">> Signify
449 let g:signify_disable_by_default = 1
450 let g:signify_vcs_list = [ 'git', 'hg' ]
451
452 436
453 ">> interestingwords 437 ">> interestingwords
454 " These are jellybeans colors and some complements 438 " These are jellybeans colors and some complements
455 let g:interestingWordsGUIColors = ['#C4A258', '#D8AD4C', '#6AADA0', '#71B9F8', '#A037B0', '#CF6A4C'] 439 let g:interestingWordsGUIColors = ['#C4A258', '#D8AD4C', '#6AADA0', '#71B9F8', '#A037B0', '#CF6A4C']
456 let g:interestingWordsRandomiseColors = 1 440 let g:interestingWordsRandomiseColors = 1
457 441
458
459 ">> neocomplcache 442 ">> neocomplcache
460 " Disable AutoComplPop.
461 let g:acp_enableAtStartup = 0 443 let g:acp_enableAtStartup = 0
462
463 " Use neocomplcache.
464 let g:neocomplcache_enable_at_startup = 1 444 let g:neocomplcache_enable_at_startup = 1
465 let g:neocomplcache_enable_smart_case = 1 445 let g:neocomplcache_enable_smart_case = 1
466 let g:neocomplcache_min_syntax_length = 3 446 let g:neocomplcache_min_syntax_length = 3
467 447
468 if !exists('g:neocomplcache_omni_patterns') 448 if !exists('g:neocomplcache_omni_patterns')
507 if has('gui_running') 487 if has('gui_running')
508 set number 488 set number
509 set background=dark 489 set background=dark
510 490
511 set guicursor+=a:blinkwait1000-blinkon1200-blinkoff250 491 set guicursor+=a:blinkwait1000-blinkon1200-blinkoff250
512
513 if s:on_windows == 1
514 set columns=120 lines=40
515 endif
516 492
517 colorscheme jellybeans 493 colorscheme jellybeans
518 else 494 else
519 if $TERM =~ '^screen' 495 if $TERM =~ '^screen'
520 if $TERM == 'screen-bce' 496 if $TERM == 'screen-bce'

mercurial