Hi Guy,

I don't know of any such interface. It would be great to have it but
you can easily build a wrapper yourself. E.g.:

def expand(expr):
    return vim.eval("expand('%s')" % expr)

Jan Christoph

On Feb 17, 11:20 am, Guy Rutenberg <[email protected]> wrote:
> Hi,
>
> Currently, if one wants to extend vim's functionality using python, he
> also has to learn considerable amount of Vim Script, which in my
> opinion isn't ideal. The vim module provides only basic python
> interface, which doesn't feel "pythonic". For many things one has to
> use Vim Scripts inside the python code. for example things like
>
> vim.eval("expand('<cword>')")
>
> in order to get the current word under the cursor.
>
> I'm looking for a "pythonic" wrapping around vim so, for instance, I
> could write the above statement like: vim.current.word()
>
> Do you know if such interface exists?
>
> Thanks,
>
> Guy
>
> ---http://www.guyrutenberg.com/

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