From 16bd00efb6d33ce477585b0e0af21a05b4a89109 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Thu, 21 Dec 2017 11:37:07 -0800 Subject: [PATCH] switch to denite and platinum searcher (pt) --- .vimrc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.vimrc b/.vimrc index 9d99a88..04af627 100644 --- a/.vimrc +++ b/.vimrc @@ -126,6 +126,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' @@ -608,10 +609,14 @@ 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 -buffer-name=search-buffer grep +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', []) " 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