From 93445c964b2b06f2c62ab66a873e07a8129f4080 Mon Sep 17 00:00:00 2001 From: Chris Thorn Date: Fri, 17 Nov 2017 10:03:14 -0800 Subject: [PATCH] Use ack.vim instead of ag.vim ag.vim has been deprecated for awhile and the maintainer suggests using ack.vim. https://github.com/rking/ag.vim/issues/124#issuecomment-227038003 --- vimrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index 85efa50..5bfc1ed 100644 --- a/vimrc +++ b/vimrc @@ -17,12 +17,12 @@ Plug 'junegunn/vim-easy-align' Plug 'kchmck/vim-coffee-script' Plug 'leafgarland/typescript-vim' Plug 'matze/vim-lilypond' +Plug 'mileszs/ack.vim' Plug 'mustache/vim-mustache-handlebars' Plug 'mxw/vim-jsx' Plug 'nicholaides/words-to-avoid.vim' Plug 'othree/html5.vim' Plug 'pangloss/vim-javascript' -Plug 'rking/ag.vim' Plug 'slim-template/vim-slim' Plug 'tpope/vim-commentary' Plug 'tpope/vim-endwise' @@ -138,8 +138,8 @@ nnoremap a :TestSuite nnoremap l :TestLast nnoremap g :TestVisit -" Look up usage of word under cursor with `:Ag!` instead of `man` -nnoremap K :Ag! "\b=expand("")\b" +" Look up usage of word under cursor with `:Ack!` instead of `man` +nnoremap K :Ack! "\b=expand("")\b" " Extended matching with "%" runtime! macros/matchit.vim @@ -178,6 +178,9 @@ else let &t_EI = "\]50;CursorShape=0\x7" endif +" Use ag with ack.vim +let g:ackprg = 'ag --vimgrep' + " Increase delay before ALE runs linters " let g:ale_lint_delay = 500