,ag and ,af for invoking :Ag and :AgFile

This commit is contained in:
Yan Pritzker 2013-12-16 10:24:32 -06:00
parent d6e129bc3d
commit 2b269754c5
2 changed files with 5 additions and 0 deletions

View File

@ -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 * `,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 * `,gcp` - GitGrep Current Partial to find references to the current view partial
* `,gcf` - GitGrep Current File to find references to the current file * `,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 * `//` - clear the search
* `,T` - Tag list (list of methods in a class) * `,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 * `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

3
vim/settings/ag.vim Normal file
View File

@ -0,0 +1,3 @@
" Open the Ag command and place the cursor into the quotes
nmap ,ag :Ag ""<Left>
nmap ,af :AgFile ""<Left>