On Tue, Mar 13, 2012 at 11:23:00PM +0200, Guy Rutenberg wrote:
> Hi Jan
> 
> On Tue, Mar 13, 2012 at 7:45 PM, Jan Christoph Ebersbach <
> janchristoph.ebersb...@googlemail.com> wrote:
> 
> >
> > you can easily build a wrapper yourself. E.g.:
> >
> > def expand(expr):
> >    return vim.eval("expand('%s')" % expr)
> >
> >
> Actually that the thing I'm trying to avoid. I got those kind of snippets
> expanding different types of "<cwords>" etc repeated themself time after
> time between each little vim script I'm writing. Interacting with vim is
> tedious via python, and I'm looking for way to make it easier.
> 
> By now, and given you're the only one to reply so far, I guess such
> library/interface is indeed missing. So I guess it would be nice to ask
> people who write scripts for vim, if such library exists, will you use it?
> How much do you reckon a good "pythonic" interface is needed?
> 
> I'm trying to understand whether putting an effort and writing something
> will indeed be useful, or it would be more wise to concentrate on using the
> current interface.

I hope to see a better and pythonic interface, too. It's tricky and
iconvienent to construct all kinds of strings for vim.eval or
vim.command. And I'd like to see it implemented in C rather than
VimL+Python. I really hope to be able to do these:

vim.current.buffer.ff = 'unix'
vim.options.fencs += 'cp936'
assert 'a' in vim.options.guioptions

-- 
Best regards,
lilydjwg

Linux Vim Python 我的博客:
http://lilydjwg.is-programmer.com/
--
A: Because it obfuscates the reading.
Q: Why is top posting so bad?

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