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
- Host: GitHub
- URL: https://github.com/tek/vim-operator-ag
- Owner: tek
- Created: 2013-06-28T22:35:14.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2017-02-12T15:57:26.000Z (over 9 years ago)
- Last Synced: 2025-09-13T15:51:10.137Z (10 months ago)
- Language: Vim script
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.