itchyny / vim-grep

The only grep in Vim that I need...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vim-grep CI Status

Example configuration

nnoremap gr :<C-u>Grep<Space>
nnoremap <silent> K :<C-u>Grep<CR>
vnoremap <silent> K :Grep<CR>

Example features (the result is set in the location list)

" 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.

About

The only grep in Vim that I need...

License:MIT License


Languages

Language:Vim Script 100.0%