motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 03cc95cc198ea94a6a003a92cd0e58af4416ec25 (tree)
parent 7c4a90614792cf4b74e0f3386cc6b14046419312
Author: Pieter-Jan Van de Maele <pieter.jan.vandemaele@autodesk.com>
Date:   Mon, 20 Jul 2015 11:30:16 +0200

Support for Ggrep when only %f is available

Diffstat:
Mplugin/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -1253,7 +1253,7 @@ function! s:Grep(cmd,bang,arg) abort try execute cd.'`=s:repo().tree()`' let &grepprg = s:repo().git_command('--no-pager', 'grep', '-n', '--no-color') - let &grepformat = '%f:%l:%m' + let &grepformat = '%f:%l:%m,%f' exe a:cmd.'! '.escape(matchstr(a:arg,'\v\C.{-}%($|[''" ]\@=\|)@='),'|') let list = a:cmd =~# '^l' ? getloclist(0) : getqflist() for entry in list