Friday, July 1, 2011

setline vs call setline

i'm writing a small script which uses setline. i'm somewhat new to vim
scripting. whenever setline was called i would get an error saying
that this is not an editor command. after looking up in the
documentation for setline, i changed it to call setline and everything
started working. but i'm confused. when should i use call and when i
simply just call a function?

any help is appreciated.

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