vim-grepper
vim-grepper copied to clipboard
add example of how to grep in the directory of current file.
I've been trying to figure out how to wrangle Grepper w/ something like %:p:h to limit grep results to only those that are in the directory (or subdirectories) of the current file.
Still haven't figured it out, but maybe someone else has?
I think this would be a great example to add to https://github.com/mhinz/vim-grepper/wiki/example-configurations-and-mappings
:Grepper -dir file?
That's the default I use when I am in a dirvish buffer:
autocmd FileType dirvish nmap <silent><buffer> <Leader>sp :Grepper -dir file -tool git<CR>