Sunday, May 9, 2010

Re: complete on :py commands?

On 10/05/10 04:10, Reckoner wrote:
> Hi,
>
> I'm running vim 7.2 on Windows XP 32-bit.
>
> I run python inside vim frequently and I'm wondering if there is a way
> to get completion as in:
>
> :py print a<TAB>
>
> which would then complete on the local variables that start with the
> letter 'a'. Even better, how about:
>
> :py <TAB>
>
> and then have it complete on everything in the locals( ) namespace.
>
> Is this possible? Is there a plug-in for it?
>
> Thanks!
>

Hm. The problem is that after :py any Python command, even IIUC one
which was just "imported", is valid, so completion requires querying the
Python interpreter somehow. I think there's a chicken-and-egg problem here.


Best regards,
Tony.
--
LETTERS TO THE EDITOR (The Times of London)

Dear Sir,

I am firmly opposed to the spread of microchips either to the home or
to the office. We have more than enough of them foisted upon us in
public places. They are a disgusting Americanism, and can only result
in the farmers being forced to grow smaller potatoes, which in turn
will cause massive unemployment in the already severely depressed
agricultural industry.

Yours faithfully,
Capt. Quinton D'Arcy, J. P.
Sevenoaks

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