Friday, November 25, 2011

Re: Backporting script to vim 6.3 (need help)

On Fri, November 25, 2011 10:15 am, Preben Randhol wrote:
> I'm testing with this code, but get error on the return part.
>
> function! Myfoo()
> let a = 1
> let b = 2
> return [a, b]
> endfunction
>
> function Mybar()
> let c = 3
> let d = 4
> echomsg "c=".c
> echomsg "d=".d
> let [c,d] = Myfoo()
>
> echomsg "c=".c
> echomsg "d=".d
> endfunction

Lists and Dictionary have been introduced with Vim 7.

regards,
Christian

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