On Sun, Nov 14, 2010 at 07:06:21PM +0100, Andy Wokula wrote:
> Am 14.11.2010 18:53, schrieb ZyX:
> >When I launch attached script I get the following output:
> >     test#var: abc
> >     Error detected while processing function test#Test:
> >     line    1:
> >     E121: Undefined variable: test#var
> >     E15: Invalid expression: test#var
> >     2: test#var: abc
> >but the E121 error should not happen here. Tested no vim-7.3 from Gentoo
> >repositories and on vim-7.3.55 (rev fcb916bed51a).
> 
> ACK, it's a bug in Vim that it requires you to prepend
> the "g:" prefix (untested):

That's not a bug.  The default scope inside a function is l: so if you
need to access some other scope, you have to use the proper prefix.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui