aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorFelipe Morales <hel.sheep@gmail.com>2015-07-02 21:21:53 -0300
committerJustin M. Keyes <justinkz@gmail.com>2015-07-14 14:25:54 -0400
commit59784b91dbf97388281c1eb6989e2e770eb7ecac (patch)
tree56d0dce9dc2a30a391324caa6e005a101d88d9ac /runtime
parent9a72f6b955a5cbe493766bac34af2cf52ae988e9 (diff)
downloadrneovim-59784b91dbf97388281c1eb6989e2e770eb7ecac.tar.gz
rneovim-59784b91dbf97388281c1eb6989e2e770eb7ecac.tar.bz2
rneovim-59784b91dbf97388281c1eb6989e2e770eb7ecac.zip
vim-patch:7.4.688 #2941
``` updated for version 7.4.668 Problem: Can't use a glob pattern as a regexp pattern. Solution: Add glob2regpat(). (Christian Brabandt) ``` https://code.google.com/p/vim/source/detail?r=v7-4-668
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 6a0fef6d55..e80ab2c714 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1833,6 +1833,7 @@ getwinvar( {nr}, {varname} [, {def}])
any variable {varname} in window {nr}
glob( {expr} [, {nosuf} [, {list}]])
any expand file wildcards in {expr}
+glob2regpat( {expr}) String convert a glob pat into a search pat
globpath( {path}, {expr} [, {nosuf} [, {list}]])
String do glob({expr}) for all dirs in {path}
has( {feature}) Number TRUE if feature {feature} supported
@@ -3646,6 +3647,14 @@ glob({expr} [, {nosuf} [, {list}]]) *glob()*
See |expand()| for expanding special Vim variables. See
|system()| for getting the raw output of an external command.
+glob2regpat({expr}) *glob2regpat()*
+ Convert a file pattern, as used by glob(), into a search
+ pattern. The result can be used to match with a string that
+ is a file name. E.g. >
+ if filename =~ glob2regpat('Make*.mak')
+< This is equivalent to: >
+ if filename =~ '^Make.*\.mak$'
+<
globpath({path}, {expr} [, {nosuf} [, {list}]]) *globpath()*
Perform glob() on all directories in {path} and concatenate
the results. Example: >