Thursday, April 29, 2010

Error when calling a user defined function.

Hi,

I have defined a function such as:

function! g:test(pattern, action)
let l:tmp=a:pattern
endfunction

When I call it using:

debug call g:test(llan,vvm)

After I type s for single step, I got

E121: Undefined variable: llan
E116: Invalid arguments for function g:test

I have other similar functions and they are running find. Only this
one give me such error message. If I quote the input as:

debug call g:test("llan","wm")

then I do not have problme. Can someone help me to see why this is
happening?

Thanks

Frank

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

No comments:

Post a Comment