One of my plugins uses the 3rd parameter to globpath:
globpath({path}, {expr} [, {flag}])            *globpath()*


On Windows, I can do the following with these Vims:

:echo globpath(substitute($PATH, '\\\?;', ',', 'g'), 'cscript.exe', 1)

That works for me using the following versions of Vim:

VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jun 22 2010 14:52:33)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-444

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jan  3 2011 22:21:37)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-94


But another Vim user gets this:

:echo globpath(substitute($PATH, '\\\?;', ',', 'g'), 'cscript.exe', 1)
OUTPUT:

E118: Too many arguments for function: globpath

E15: Invalid expression: globpath(substitute($PATH, '\\\?;', ',', 'g'), 'cscript.exe', 1)


His Vim looks to be the GA release of Vim 7.2:
Vi IMproved 7.2 (Aug 9, compiled Aug 9 2008 ...)

Could someone tell me what patch this support was added in, so I can test for it and leave the additional flag off when appropriate.

I couldn't see any reference to this in the :h version7.txt where it lists other features added and the build.


TIA,
Dave

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui