Monday, June 6, 2011

Re: How to get returned value from python functions in vim scripts ?

On Tue, Jun 7, 2011 at 08:47, Lenin <lenin.lee@gmail.com> wrote:
> Alec: It seems :py vim.command('return 1') will throw an error that says
> "return not inside a function".

It works fine if you call it inside a vim function:

:function Func()
: py vim.command('return 1')
:endfunction

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