On 8/16/12, Maxim <[email protected]> wrote:
> Hi, vim_dev!
>
> I'd like to offer a small patch for python interface, which allows to avoid
> inserting print call for every expression in order to see result.
>
> Now:
>
> :py 2 + 2
> :py dir.__doc__
>
> After applying patch:
>
> :py 2 + 2
> 4
> :py dir.__doc__
> dir([object]) -> list of strings...
>
> So py/py3 commands are more REPL-like. See pyrepl.diff in attachment for
> details.

There are plugins that implement REPL-like behavior:
http://www.vim.org/scripts/script.php?script_id=3484
http://www.vim.org/scripts/script.php?script_id=3327
http://www.vim.org/scripts/script.php?script_id=3231
and probably other.

It makes no sense for :python commands to behave differently from
other commands. That is, we currently need to type
:echo 2+2
to see the result, why :python should be different?

Regards,
Vlad

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui