An open API service indexing awesome lists of open source software.

https://github.com/tek/vim-operator-ag

vim operator to :Ag the motioned text
https://github.com/tek/vim-operator-ag

Last synced: 4 months ago
JSON representation

vim operator to :Ag the motioned text

Awesome Lists containing this project

README

          

vim-operator-ag
===============

## Usage

`map {lhs} (operator-agg)`

Executing the `{lhs}` command followed by a motion like `iW` will ag the current directory for the text selected by the motion.

`map {lhs} (operator-ag)`

This variant leaves vim in command-line mode, allowing you to specify a search path or additional `ag` parameters.

## Customization

`g:operator_ag_cmd = 'Ag!'`

The command to be executed.

`g:operator_ag_escape = 1`

Whether or not the selected text should be shellescaped.
This is necessary for `:Ag`, as its arguments are being passed to the shell as-is.
When using a different approach, e.g. via Unite, set this to 0.