Skip to content

Commit

Permalink
Use ack.vim instead of ag.vim
Browse files Browse the repository at this point in the history
ag.vim has been deprecated for awhile and the maintainer suggests using
ack.vim.

rking/ag.vim#124 (comment)
  • Loading branch information
thorncp committed Nov 17, 2017
1 parent 89e683a commit 93445c9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions vimrc
Expand Up @@ -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'
Expand Down Expand Up @@ -138,8 +138,8 @@ nnoremap <LEADER>a :TestSuite<CR>
nnoremap <LEADER>l :TestLast<CR>
nnoremap <LEADER>g :TestVisit<CR>
" Look up usage of word under cursor with `:Ag!` instead of `man`
nnoremap K :Ag! "\b<C-R>=expand("<cword>")<CR>\b"<CR>
" Look up usage of word under cursor with `:Ack!` instead of `man`
nnoremap K :Ack! "\b<C-R>=expand("<cword>")<CR>\b"<CR>
" Extended matching with "%"
runtime! macros/matchit.vim
Expand Down Expand Up @@ -178,6 +178,9 @@ else
let &t_EI = "\<Esc>]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

Expand Down

2 comments on commit 93445c9

@gfontenot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you already use fzf, you could add https://github.com/junegunn/fzf.vim instead of this and get an :Ag command that works with ag out of the box.

@thorncp
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My hero. Done in 7d3a7af. Thanks Gordon!

Please sign in to comment.