https://github.com/halkn/vim-agrep
vim plugin for grep.
https://github.com/halkn/vim-agrep
vim-plugin vim-plugins
Last synced: 7 months ago
JSON representation
vim plugin for grep.
- Host: GitHub
- URL: https://github.com/halkn/vim-agrep
- Owner: halkn
- License: mit
- Created: 2020-12-12T06:39:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-12T13:03:58.000Z (over 4 years ago)
- Last Synced: 2024-08-07T18:46:17.069Z (11 months ago)
- Topics: vim-plugin, vim-plugins
- Language: Vim script
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-agrep
This is a small vim plugin. grep in vim.
Grep asynchronously using the `job` of vim.## Usage
This plugin will use `grepprg` to grep.
Set up `grepprg` in your vimrc with the following statement.```vim
" use git grep.
set grepprg=git\ grep\ -I\ --line-number" Or use ripgrep.
if executable('rg')
let &grepprg = 'rg --vimgrep --hidden'
set grepformat=%f:%l:%c:%m,%f:%l:%m
endif" write in vimrc
nmap a (agrep-input)
```Run
```vim
:Agrep foo
:Agrep foo bar "bar is the directory to search
:AgrepStop
```## License
[MIT](LICENSE)