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 error " E121: Undefined variable: a#foo E15: Invalid expression: a#foo ". I can use ":echo a#foo", and there is no error and display "1" on the command line. Why does the error "undefined variable" come out when i use it in a autload function ?? -- You received this message from the "vim_use" 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