From e8aae0183012b084c5cf429d2b7dce17891661b0 Mon Sep 17 00:00:00 2001 From: gxlin Date: Wed, 10 Feb 2021 20:37:25 +0800 Subject: Add ack.vim to .vimrc --- .vimrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 0430e11..21f9983 100644 --- a/.vimrc +++ b/.vimrc @@ -98,7 +98,7 @@ Plug 'tpope/vim-unimpaired' Plug 'godlygeek/tabular' Plug 'ledger/vim-ledger', {'for': 'ledger'} Plug 'puremourning/vimspector' -Plug 'nathangrigg/vim-beancount', {'for': 'beancount'} +Plug 'mileszs/ack.vim' call plug#end() " Plugin config @@ -178,3 +178,10 @@ hi! SpellRare gui=undercurl guisp=magenta " Vimspector let g:vimspector_enable_mappings = 'HUMAN' + +" Ack.vim +if executable('ag') + let g:ackprg = 'ag --vimgrep' +endif +cnoreabbrev Ack Ack! +nnoremap a :Ack! -- cgit v1.2.3