From 2b269754c504d17a3c092ef490fcd90c40ab1410 Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Mon, 16 Dec 2013 10:24:32 -0600 Subject: [PATCH] ,ag and ,af for invoking :Ag and :AgFile --- README.md | 2 ++ vim/settings/ag.vim | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 vim/settings/ag.vim diff --git a/README.md b/README.md index ae94a8d..97bdd1f 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,8 @@ of plugins above to learn more. * `,gd` - GitGrep def (greps for 'def [function name]') when cursor is over the function name * `,gcp` - GitGrep Current Partial to find references to the current view partial * `,gcf` - GitGrep Current File to find references to the current file + * `,ag` - Ag - silver searcher. Alternative to GitGrep that is as fast or faster. + * `,af` - AgFile - silver searcher for a filename * `//` - clear the search * `,T` - Tag list (list of methods in a class) * `Ctrl-s` - Open related spec in a split. Similar to :A and :AV from rails.vim but is also aware of the fast_spec dir and faster to type diff --git a/vim/settings/ag.vim b/vim/settings/ag.vim new file mode 100644 index 0000000..a6dcd27 --- /dev/null +++ b/vim/settings/ag.vim @@ -0,0 +1,3 @@ +" Open the Ag command and place the cursor into the quotes +nmap ,ag :Ag "" +nmap ,af :AgFile ""