Python in Vim
Adam 'Vonlia' Seyfarth
adam.seyfarth at home.com
Wed Aug 22 11:33:06 EDT 2001
On Wed, 22 Aug 2001, Andrei Kulakov wrote:
> On Tue, 21 Aug 2001 16:37:50 GMT, Adam 'Vonlia' Seyfarth <adam at home.com> wrote:
> > This message is in MIME format. The first part should be readable text,
> > while the remaining parts are likely unreadable without MIME-aware tools.
> > Send mail to mime at docserver.cac.washington.edu for more info.
> >
> > --239146339-156700546-998411271=:2888
> > Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-1
> > Content-Transfer-Encoding: 8BIT
> > Content-ID: <Pine.LNX.4.33.0108211130501.2902 at cc489744-a.htsbrg1.ms.home.com>
> >
> >
> > Hi python rabbits -
> > I have made an addition to python.vim that I sent (or at least I
> > think I sent) to this list a couple of days ago. It can add a
> > 'IM-Python' menu to Gvim that holds the name of all the classes in the
> > file. Clicking on one of those hops to the line number of that
> > function. You can get the list by editing a Python file, then doing:
> >
> > :call MakeMenuStructure()
> >
> > ---then it will go on forever, just type ^C and <Enter> (it reports
> > bugs, but it will work nonetheless) and you have the menu. Since it
> > still sort of has bugs, I haven't put it on the WWW yet. I would
> > appreciate it a lot of someone could figure out the bug. I have also
> > added code to do the defs, but it won't work until the bug is fixed,
> > sorry.
>
> That could be very useful, would it be easy to make it work in console
> vim?
I think console Vim could be done...but I was adding onto a Python
script that has a gargantuan Python menu (although, there are maps for
most everything...). Also, I don't know how to test if Vim is in GUI
mode or not... But I'm working on it...what way would you like the
functions and such displayed? I can think of:
* opening a new buffer with tags. bad because whipes out the tags
file and wastes precious space.
* a big long list of maps. bad because maps are hard to remember.
---There are _surely_ more than that, but my foresight ends there. Any
more ideas?
PS: I have a new version, which fixes the bugs with classes and
functions, which I'll put on vim.sf.net, and on my website (
members.home.net/adam.seyfarth/vim/python.vim ).
Seeya
--
Two is not equal to three, not even for very large values of two.
-- Gregory Propf
/|| Adam Seyfarth <http://members.home.net/adam.seyfarth/> ||\
/«|| <mailto:cloud at users.sf.net> Geekcode, version 3.12 ||»\
\«|| GU d-- s+: a---- C++ UL+>++ P-- L++ E-- W++ N++ o K- w-- ||»/
\|| O M- V- PE- Y PGP- t 5 X R tv+ b+ DI+ D+ G e-- h! !r !y+ ||/
More information about the Python-list
mailing list