diff --git a/.vim/colors/baraknew.vim b/.vim/colors/baraknew.vim index 803aebe..03df230 100644 --- a/.vim/colors/baraknew.vim +++ b/.vim/colors/baraknew.vim @@ -414,3 +414,8 @@ hi CANCELED guifg=red guibg=NONE ctermfg=red ctermbg=NONE hi STARTED guifg=yellow guibg=NONE ctermfg=yellow ctermbg=NONE hi NEXT guifg=cyan guibg=NONE ctermfg=cyan ctermbg=NONE hi DONE guifg=green guibg=NONE ctermfg=green ctermbg=NONE + +" For denite.nvim +" + +hi deniteMatchedChar guifg=#FFFFFF guibg=#5F87FF ctermfg=15 ctermbg=27 diff --git a/.vimrc b/.vimrc index 30fa446..0869f1d 100644 --- a/.vimrc +++ b/.vimrc @@ -127,6 +127,7 @@ Plug 'whonore/coquille', {'branch': 'pathogen-bundle', 'for': 'coq'} Plug 'mhartington/nvim-typescript' Plug 'sheerun/vim-polyglot' +Plug 'Shougo/denite.nvim' "Plug 'vim-scripts/fish-syntax' "Plug 'kchmck/vim-coffee-script' "Plug 'rodjek/vim-puppet' @@ -615,10 +616,17 @@ nnoremap ss :SyntasticSetLoclist nnoremap fn :lnext " Prev quickfix. nnoremap fp :lprev -" Ack (grep) for the word under the cursor. -nnoremap aw :exe 'Ack ' . expand('') -" Ack prompt. -nnoremap ac :Ack +nnoremap aw :DeniteCursorWord -mode=normal -buffer-name=search-buffer grep +call denite#custom#map('insert', '', '') +call denite#custom#var('grep', 'command', ['pt']) +call denite#custom#var('grep', 'default_opts', + \ ['--nogroup', '--nocolor', '--smart-case']) +call denite#custom#var('grep', 'recursive_opts', []) +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 g :Denite -buffer-name=search-buffer grep " 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 hh :A