.vimrc

changeset 811
abdb905668f5
parent 810
de41d00d8344
child 812
d62e41b99428
equal deleted inserted replaced
810:de41d00d8344 811:abdb905668f5
22 Plug 'nathanaelkane/vim-indent-guides' 22 Plug 'nathanaelkane/vim-indent-guides'
23 23
24 Plug 'ciaranm/securemodelines' 24 Plug 'ciaranm/securemodelines'
25 Plug 'editorconfig/editorconfig-vim' 25 Plug 'editorconfig/editorconfig-vim'
26 26
27 Plug 'Shougo/vimproc.vim' 27 Plug 'tpope/vim-vinegar'
28 Plug 'Shougo/unite.vim'
29 Plug 'Shougo/vimfiler.vim'
30 Plug 'mbbill/undotree', {'on': 'UndotreeToggle'} 28 Plug 'mbbill/undotree', {'on': 'UndotreeToggle'}
31 Plug 'majutsushi/tagbar', {'on': 'TagbarToggle'} 29 Plug 'majutsushi/tagbar', {'on': 'TagbarToggle'}
32 30
33 Plug 'godlygeek/tabular' 31 Plug 'godlygeek/tabular'
34 Plug 'tomtom/tcomment_vim' 32 Plug 'tomtom/tcomment_vim'
60 58
61 call plug#end() 59 call plug#end()
62 " }}} 60 " }}}
63 61
64 " Key maps {{{ 62 " Key maps {{{
65 nnoremap <silent> <F2> :VimFilerExplorer<CR> 63 nnoremap <silent> <F2> :Lexplore<CR>
66 noremap <silent> <F4> :set hls!<CR> 64 noremap <silent> <F4> :set hls!<CR>
67 nnoremap <silent> <F5> :UndotreeToggle<CR> 65 nnoremap <silent> <F5> :UndotreeToggle<CR>
68 nnoremap <silent> <F8> :TagbarToggle<CR> 66 nnoremap <silent> <F8> :TagbarToggle<CR>
69
70 nnoremap <leader>ub :Unite buffer<CR>
71 67
72 " let F4, :noh work as-is in insert mode 68 " let F4, :noh work as-is in insert mode
73 imap <F4> <C-O><F4> 69 imap <F4> <C-O><F4>
74 70
75 " chdir to the directory of the open buffer 71 " chdir to the directory of the open buffer
276 272
277 " Simple highlight conflict markers 273 " Simple highlight conflict markers
278 autocmd BufReadPost * 274 autocmd BufReadPost *
279 \ syn match Error "^\(<\|>\||\)\1\{6,7}" | 275 \ syn match Error "^\(<\|>\||\)\1\{6,7}" |
280 \ syn match Error "^=\{7,8}$" 276 \ syn match Error "^=\{7,8}$"
281
282 " double-click to edit in vimfiler
283 autocmd FileType vimfiler nmap <buffer> <2-LeftMouse> <Plug>(vimfiler_edit_file)
284 277
285 " Simplify noisy ltag output 278 " Simplify noisy ltag output
286 autocmd BufReadPost quickfix 279 autocmd BufReadPost quickfix
287 \ if w:quickfix_title =~# '^:ltag' | 280 \ if w:quickfix_title =~# '^:ltag' |
288 \ setl modifiable | 281 \ setl modifiable |
319 let g:perl_tidy_equalprg = executable('perltidy') ? 1 : 0 312 let g:perl_tidy_equalprg = executable('perltidy') ? 1 : 0
320 " }}} 313 " }}}
321 314
322 " Plugin settings {{{ 315 " Plugin settings {{{
323 let g:plug_threads = 3 316 let g:plug_threads = 3
317
318 ">> Netrw
319 let g:netrw_browse_split = 4
320 let g:netrw_winsize = 20
321 let g:netrw_liststyle = 3
324 322
325 ">> vim-polyglot 323 ">> vim-polyglot
326 let g:polyglot_disabled = ['vifm', 'perl'] 324 let g:polyglot_disabled = ['vifm', 'perl']
327 325
328 ">> mucomplete 326 ">> mucomplete
421 \ 'c:callbacks', 419 \ 'c:callbacks',
422 \ 'e:exceptions', 420 \ 'e:exceptions',
423 \ ], 421 \ ],
424 \ } 422 \ }
425 423
426 ">> Unite
427 try
428 " call unite#filters#matcher_default#use(['matcher_fuzzy'])
429 call unite#filters#sorter_default#use(['sorter_rank'])
430
431 call unite#custom#profile('default', 'context', {'winheight': 10})
432 catch
433 endtry
434
435 ">> vimfiler
436 let g:vimfiler_as_default_explorer = 1
437
438 ">> Airline 424 ">> Airline
439 let g:airline#extensions#whitespace#enabled = 0 425 let g:airline#extensions#whitespace#enabled = 0
440 let g:airline_powerline_fonts = 0 426 let g:airline_powerline_fonts = 0
441 427
442 let g:airline#extensions#tabline#enabled = 1 428 let g:airline#extensions#tabline#enabled = 1
451 let g:airline#extensions#tabline#left_alt_sep = ' ' 437 let g:airline#extensions#tabline#left_alt_sep = ' '
452 let g:airline#extensions#tabline#right_sep = ' ' 438 let g:airline#extensions#tabline#right_sep = ' '
453 let g:airline#extensions#tabline#right_alt_sep = ' ' 439 let g:airline#extensions#tabline#right_alt_sep = ' '
454 440
455 let g:airline#extensions#tabline#ignore_bufadd_pat = 441 let g:airline#extensions#tabline#ignore_bufadd_pat =
456 \ '\c\v^__gundo|^__tagbar|^vimfiler|^[doc\d+\]$' 442 \ '\c\v^__gundo|^__tagbar||^[doc\d+\]$'
457 let g:airline#extensions#tabline#excludes = [ 443 let g:airline#extensions#tabline#excludes = [
458 \ g:airline#extensions#tabline#ignore_bufadd_pat, 444 \ g:airline#extensions#tabline#ignore_bufadd_pat,
459 \ ] 445 \ ]
460 446
461 let g:airline#extensions#branch#format = 2 447 let g:airline#extensions#branch#format = 2

mercurial