94 " }}} |
94 " }}} |
95 |
95 |
96 |
96 |
97 " Key maps {{{ |
97 " Key maps {{{ |
98 |
98 |
99 " F1 - Unite to switch buffers |
|
100 nmap <silent> <F1> :Unite buffer<CR> |
99 nmap <silent> <F1> :Unite buffer<CR> |
101 " S-F1 - Unite to switch windows or tabs |
100 nmap <silent> <C-F1> :Unite -quick-match -short-source-names window tab:no-current<CR> |
102 nmap <silent> <S-F1> :Unite -quick-match -short-source-names window tab:no-current<CR> |
|
103 nmap <silent> <A-F1> :Unite session<CR> |
101 nmap <silent> <A-F1> :Unite session<CR> |
104 nmap <silent> <F2> :VimFilerExplorer<CR> |
102 nmap <silent> <F2> :VimFilerExplorer<CR> |
|
103 nmap <silent> <C-F2> :Unite -start-insert file_rec/async:!<CR> |
105 map <silent> <F4> :noh<CR> |
104 map <silent> <F4> :noh<CR> |
106 nmap <silent> <F5> :GundoToggle<CR> |
105 nmap <silent> <F5> :GundoToggle<CR> |
107 nmap <silent> <F8> :TagbarToggle<CR> |
106 nmap <silent> <F8> :TagbarToggle<CR> |
108 |
|
109 " This is supposed to get a CtrlP workalike with fuzzy match but i need to fix |
|
110 " ignores and always chdir to a good place |
|
111 if s:on_windows == 1 |
|
112 nmap <silent> <S-F2> :Unite -start-insert file_rec:!<CR> |
|
113 else |
|
114 nmap <silent> <S-F2> :Unite -start-insert file_rec/async:!<CR> |
|
115 endif |
|
116 |
107 |
117 " stop opening help by mistake |
108 " stop opening help by mistake |
118 imap <F1> <ESC> |
109 imap <F1> <ESC> |
119 |
110 |
120 " let F4, :noh work as-is in insert mode |
111 " let F4, :noh work as-is in insert mode |
444 |
435 |
445 |
436 |
446 ">> Unite |
437 ">> Unite |
447 " call unite#filters#matcher_default#use(['matcher_fuzzy']) |
438 " call unite#filters#matcher_default#use(['matcher_fuzzy']) |
448 call unite#filters#sorter_default#use(['sorter_rank']) |
439 call unite#filters#sorter_default#use(['sorter_rank']) |
449 " let g:unite_source_history_yank_enable = 1 |
|
450 |
440 |
451 call unite#custom#profile('default', 'context', {'winheight': 10}) |
441 call unite#custom#profile('default', 'context', {'winheight': 10}) |
452 |
442 |
453 if executable('ag') |
443 if executable('ag') |
454 let g:unite_source_grep_command = 'ag' |
444 let g:unite_source_grep_command = 'ag' |
455 let g:unite_source_grep_default_opts = '--nogroup --nocolor --column' |
445 let g:unite_source_grep_default_opts = '--nogroup --nocolor --column' |
456 let g:unite_source_grep_recursive_opt = '' |
446 let g:unite_source_grep_recursive_opt = '' |
457 endif |
447 |
|
448 let g:unite_source_rec_async_command = ['ag', '-f', '--nocolor', '--nogroup', '-g', ''] |
|
449 endif |
|
450 |
458 |
451 |
459 ">> vimfiler |
452 ">> vimfiler |
460 let g:vimfiler_as_default_explorer = 1 |
453 let g:vimfiler_as_default_explorer = 1 |
461 |
454 |
462 |
455 |