Commit 80efbe8a authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Make vim search from directory of current buffer

parent dd038ee5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -202,7 +202,7 @@ vnoremap <silent> S ""y:exe 'AsyncGrep'

let s:grepargs='-En --binary-files=without-match'
if executable("list-files")
	let &grepprg = 'list-files -z\| xargs -r0 grep ' . s:grepargs . ' $*'
	let &grepprg = 'list-files -z %:p:h \| xargs -r0 grep ' . s:grepargs . ' $*'
else
	let &grepprg = '~/.shell/bin/grep-auto-exclude grep $* -r . ' . s:grepargs
endif