denite maps

This commit is contained in:
Barak Michener 2017-12-25 11:55:40 -08:00
parent 40b70b98d8
commit ee43fabed2

2
.vimrc
View file

@ -612,6 +612,7 @@ nnoremap <Leader>fn :lnext<CR>
" Prev quickfix.
nnoremap <Leader>fp :lprev<CR>
nnoremap <silent> <Leader>aw :<C-u>DeniteCursorWord -mode=normal -buffer-name=search-buffer grep<CR>
call denite#custom#map('insert', '<Enter>', '<C-o>')
call denite#custom#var('grep', 'command', ['pt'])
call denite#custom#var('grep', 'default_opts',
\ ['--nogroup', '--nocolor', '--smart-case'])
@ -620,6 +621,7 @@ call denite#custom#var('grep', 'pattern_opt', [])
call denite#custom#var('grep', 'separator', ['--'])
call denite#custom#var('grep', 'final_opts', [])
call denite#custom#option('search-buffer', 'highlight_matched_char', 'deniteMatchedChar')
nnoremap <silent> <Leader>g :<C-u>Denite -buffer-name=search-buffer grep<CR>
" For C++ -- A is a great plugin which allows you to jump from the c file to the
" header and vice-versa. Mneumonic here is headerheader.
nnoremap <Leader>hh :A<CR>