Skip to content

Instantly share code, notes, and snippets.

@rra3
Created April 13, 2015 16:54
Show Gist options
  • Select an option

  • Save rra3/0cbcb88c79ee2a098098 to your computer and use it in GitHub Desktop.

Select an option

Save rra3/0cbcb88c79ee2a098098 to your computer and use it in GitHub Desktop.
ags config
"
let g:ags_agexe = '/usr/local/bin/ag'
let g:ags_edit_show_line_numbers = 1
" following two lines create a cool 'find all refs' type deal
set grepprg=ags
nnoremap K :Ags "\b<C-R><C-W>\b"<CR>
" default ag search options - gives a nice colored result buffer
let g:ags_agargs = {
\ '--break' : [ '', '' ],
\ '--color' : [ '', '' ],
\ '--color-line-number' : [ '"1;30"', '' ],
\ '--color-match' : [ '"32;40"', '' ],
\ '--color-path' : [ '"1;31"', '' ],
\ '--column' : [ '', '' ],
\ '--context' : [ 'g:ags_agcontext', '-C', '3' ],
\ '--filename' : [ '', '' ],
\ '--group' : [ '', '' ],
\ '--heading' : [ '', '-H' ],
\ '--max-count' : [ 'g:ags_agmaxcount', '-m', '2000' ],
\ '--numbers' : [ '', '' ]
\ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment