https://github.com/rking/ag.vim
This plugin map gag to do Ag search.
- Normal Mode
gagiwto search the wordgagi'to search the words inside single quotes.
- Visual Mode
gagto search the selected text
" use * to search current word in normal mode
nmap * <Plug>AgActionWord
" use * to search selected text in visual mode
vmap * <Plug>AgActionVisualThere are some special characters used in Ag, like '$' which is treated as the
end of the line. Most of the time we use literal meaning of these characters.
You can set escapes for these characters in g:vim_action_ag_escape_chars.
By Default, this global variable is set like this:
let g:vim_action_ag_escape_chars = '#%.^$*+?()[{\\|'