mirror of
https://github.com/vim-scripts/grep.vim.git
synced 2025-12-06 21:04:28 +08:00
Version 1.11: Fixed a problem in using the "Rgrep <pattern> <filenames>" command.
This commit is contained in:
committed by
Able Scraper
parent
961dfaa5b9
commit
852ddb0c65
18
README
18
README
@@ -177,7 +177,11 @@ this is set to agrep. You can change this using the let command:
|
||||
:let Agrep_Path = 'd:\tools\agrep.exe'
|
||||
|
||||
The 'Grep_Find_Path' variable is used to locate the find utility. By
|
||||
default, this is set to d:\tools\find.exe. You can change this using the let
|
||||
default, this is set to 'find'. Note that on MS-Windows, there is a find.exe
|
||||
that is part of the base OS. This find utility is different from the the
|
||||
Unix find utility. You cannot use this utility with this plugin. You must
|
||||
install the Unix compatible find utility and set the Grep_Find_Path variable
|
||||
to point to the location of the utility. You can change this using the let
|
||||
command:
|
||||
|
||||
:let Grep_Find_Path = 'd:\tools\find.exe'
|
||||
@@ -231,13 +235,13 @@ recursive searches:
|
||||
|
||||
:let Grep_Find_Use_Xargs = 0
|
||||
|
||||
To handle file names with space characters in them, the xargs utility
|
||||
is invoked with the '--null' argument. If the xargs utility in your system
|
||||
doesn't accept the '--null' argument, then you can change the
|
||||
Grep_Xargs_Options variable. For example, to use the '--print0' xargs
|
||||
argument, you can use the following command:
|
||||
To handle file names with space characters in them, the xargs utility is
|
||||
invoked with the '-0' argument. If the xargs utility in your system doesn't
|
||||
accept the '-0' argument, then you can change the Grep_Xargs_Options
|
||||
variable. For example, to use the '--null' xargs argument, you can use the
|
||||
following command:
|
||||
|
||||
:let Grep_Xargs_Options = '--print0'
|
||||
:let Grep_Xargs_Options = '--null'
|
||||
|
||||
The Grep_Cygwin_Find variable should be set to 1, if you are using the find
|
||||
utility from the cygwin package. This setting is used to handle the
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
" File: grep.vim
|
||||
" Author: Yegappan Lakshmanan (yegappan AT yahoo DOT com)
|
||||
" Version: 1.10
|
||||
" Last Modified: April 20, 2013
|
||||
" Version: 1.11
|
||||
" Last Modified: April 24, 2013
|
||||
"
|
||||
" Overview
|
||||
" --------
|
||||
@@ -197,7 +197,11 @@
|
||||
" :let Agrep_Path = 'd:\tools\agrep.exe'
|
||||
"
|
||||
" The 'Grep_Find_Path' variable is used to locate the find utility. By
|
||||
" default, this is set to d:\tools\find.exe. You can change this using the let
|
||||
" default, this is set to 'find'. Note that on MS-Windows, there is a find.exe
|
||||
" that is part of the base OS. This find utility is different from the the
|
||||
" Unix find utility. You cannot use this utility with this plugin. You must
|
||||
" install the Unix compatible find utility and set the Grep_Find_Path variable
|
||||
" to point to the location of the utility. You can change this using the let
|
||||
" command:
|
||||
"
|
||||
" :let Grep_Find_Path = 'd:\tools\find.exe'
|
||||
@@ -499,7 +503,11 @@ function! s:RunGrepRecursive(cmd_name, grep_cmd, action, ...)
|
||||
let pattern = g:Grep_Shell_Quote_Char . a:{argcnt} .
|
||||
\ g:Grep_Shell_Quote_Char
|
||||
else
|
||||
if filepattern != ""
|
||||
let filepattern = filepattern . " " . a:{argcnt}
|
||||
else
|
||||
let filepattern = a:{argcnt}
|
||||
endif
|
||||
endif
|
||||
let argcnt= argcnt + 1
|
||||
endwhile
|
||||
|
||||
Reference in New Issue
Block a user