https://github.com/itchyny/vim-grep
The only grep in Vim that I need...
https://github.com/itchyny/vim-grep
vim vim-plugin vim-script
Last synced: 5 months ago
JSON representation
The only grep in Vim that I need...
- Host: GitHub
- URL: https://github.com/itchyny/vim-grep
- Owner: itchyny
- License: mit
- Created: 2017-06-24T11:10:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-05-20T13:14:28.000Z (9 months ago)
- Last Synced: 2025-07-21T19:55:56.889Z (7 months ago)
- Topics: vim, vim-plugin, vim-script
- Language: Vim Script
- Size: 21.5 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-grep [](https://github.com/itchyny/vim-grep/actions)
Example configuration
```vim
nnoremap gr :Grep
nnoremap K :Grep
vnoremap K :Grep
```
Example features (the result is set in the location list)
```vim
" git grep function (with grep command fallback outside of a git repository)
:Grep function
" grep at the current directory
:Grep function .
" grep from the other git repository
:Grep function ~/vim/grep/
" grep with the word under the cursor
:Grep
" grep with the selected text in the visual mode
:'<'>Grep
```
## Installation
Install with your favorite plugin manager.
## Author
itchyny (https://github.com/itchyny)
## License
This software is released under the MIT License, see LICENSE.