On 04-Apr-09 22:21, Matt Wozniski wrote:
> On Sat, Apr 4, 2009 at 3:17 PM, Yakov Lerner wrote:
>> If vimscript functions had remark "Added in vim7.1.129", it would be useful.
>> For example, if you want to know how portable the script is.
> 
> Probably not exactly what you're looking for, but I keep copies of vim
> 6.4.10 and 7.0.0 around just so that I can look at older runtimefiles
> and docs and test scripts in older vims.
> 
> ~Matt

I keep old Vim versions (since 6.0), too, and grep the docs for the first 
occurrence of a built-in function name. (But I also use these old Vims for 
compatibility testing of my scripts.) I totally agree with Yakov that this 
would 
be very helpful for script writers. I'd love to see these remarks below each 
function's help text, with a formatting similar to those {not in Vi} and {not 
available when compiled without the +whatever feature} remarks, e.g. {since 
7.0} 
or {optional third argument added with 7.1.42}.

Manually researching this for all built-in functions looks tedious, but maybe 
someone can come up with a throwaway script that extracts the relevant info 
from 
the patch info / CVS history / git / ...?

-- regards, ingo


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui