I have a script such a.vim in autoload directory, and the file content
is as below:
begin---
let a#foo = 1
function! a#FooFunc()
echo a#foo
endfunction
-end-
But when i call this function with command
:call a#FooFunc()
I always get the
Reply to message «question about variable in autoload»,
sent 17:27:42 12 January 2011, Wednesday
by winterTTr:
Yup, I ran in this problem some time ago, asked about it somewhere on vim-dev,
and got the answer that the reason is just the same as with the following code:
let foo=1
! a#FooFunc()
echo g:a#foo
echo s:a#foo
endfunction
read help:
:h g:var
:h l:var
:h s:var
2011-01-13
ifys0325
发件人: winterTTr
发送时间: 2011-01-12 22:57:34
收件人: vim_use
抄送:
主题: question about variable in autoload
I have a script such a.vim in autoload directory, and the file content
-12 22:57:34
收件人: vim_use
抄送:
主题: question about variable in autoload
I have a script such a.vim in autoload directory, and the file content
is as below:
begin---
let a#foo = 1
function! a#FooFunc()
echo a#foo
endfunction
-end-
But when