Hi,

I was trying to write a small function in vimscript that moves the cursor to
a given line, in order to perform some actions.
I was trying with something like this

function F()
    ....
    cursor(4,0)
    ....
endfunction


but I got and E492 error.
However, with

    call cursor(4,0)

everything seems to work.
Can someone point me to a good link when it is explain why and when call is
needed?
:help call  doesn't explain it, or I don't understand it.



Thanks,
Jose

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

Reply via email to