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):

function test#Test()
    echo g:test#var
endfunction

--
Andy

--
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