473,320 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Pythonising the vim (e.g. syntax popups)

Evening,

I'm an addicted vim user and don't really use the IDLE for anything more
than calculations where I'm too lazy to start KCalc. But one feature is
very pretty: the built-in help for function calls while you type. Like you
enter...

var1,var2=mystring.split(
....and the IDLE shows me a popup saying...
"S.split([sep [,maxsplit]]) -> list of strings

Is there a decent way to get that help into vim? Or like showing docstrings
or help that I get through pydoc on request? I've been working myself
through a pile of vim macros/plugins but couldn't find even one which
simplifies programming in Python. Further issues would be handling the
indentation - maybe a plugin which syntax colors different levels of
indentation so I don't have to use my plastic ruler on the screen. ;)
Perhaps some more experienced Python/Vim users have a tip which macro sets
help most here.

Thanks,
Christoph
--
~
~
".signature" [Modified] 1 line --100%-- 1,48 All
Nov 9 '05 #1
3 1719
Hi,
I am using gvim 6.4 which has Python colorising, and
The menu tools->folding->fold method->indent

:help folding
May give you more info.

Cheers, Paddy.

Nov 9 '05 #2
Christoph Haas wrote:
Evening,

I'm an addicted vim user and don't really use the IDLE for anything more
than calculations where I'm too lazy to start KCalc. But one feature is
very pretty: the built-in help for function calls while you type. Like you
enter...

var1,var2=mystring.split(
...and the IDLE shows me a popup saying...
"S.split([sep [,maxsplit]]) -> list of strings

Is there a decent way to get that help into vim? Or like showing docstrings
or help that I get through pydoc on request? I've been working myself
through a pile of vim macros/plugins but couldn't find even one which
simplifies programming in Python. Further issues would be handling the
indentation - maybe a plugin which syntax colors different levels of
indentation so I don't have to use my plastic ruler on the screen. ;)
Perhaps some more experienced Python/Vim users have a tip which macro sets
help most here.


Vim is my editor of choice, too. I've even gone back to Vim from Eclipse.

I believe what you want are "tags."

http://www.vmunix.com/vim/tags.html

I have not tried these in Vim yet, although I did use etags with Emacs
(before I discovered the miracle of Vim).

If you get context-sensitive help to work properly in Vim, please let me
know!
Nov 9 '05 #3
There is a Python folding script, as someone already mentioned. That
will help you track indentation, although it's not perfect (iirc, long
triple quoted strings cause folding malfunctions)

I don't know of any way to get dynamic help about functions, although
it seems like an ideal use of Vim's built-in Python interpreter and the
vim python module.

Nov 9 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Art | last post by:
NEWBIE ALERT! Esteemed List Participants and Lurkers: (System: P-II 350, 192 meg, Win98 SE, Python 2.2.3, wxPythonWIN32-2.4.1.2-Py22.exe) I'm having a lot of fun getting started with Python...
52
by: Harlan Messinger | last post by:
Can you help me figure out what to do about popups? Sometimes we develop web applications where popups make very good sense for precisely the same reasons they make sense in traditional...
3
by: PSERVE | last post by:
Is the a way of preventing popups from other sites while your page is loading? -- Regards Nik http://www.itconsultancy.org
2
by: Tom Szabo | last post by:
Hi, >>IE in Windows XP Service Pack 2 has a popup blocker that blocks unsolicited >>popups >>IE (other than Windows XP Service Pack 2) also has many add-ons (Google toolbar, >>Yahoo! toolbar,...
1
by: Roman Roelofsen | last post by:
> Evening, > > Is there a decent way to get that help into vim? Or like showing docstrings > or help that I get through pydoc on request? I've been working myself > through a pile of vim...
4
by: ciprian.dosoftei | last post by:
Hello, I just finished a tutorial website regarding the development of DHTML popups. The site features several examples with downloadable samples. It also feature more complex effects like...
4
by: chaitu | last post by:
Hi guys, I've written a parallel build program (in Perl) that takes a pre-computed dependency tree of many projects in 2 visual studio .net 2003 solution (.sln) files here at my company, and...
1
by: YotamElal | last post by:
Hello, I have a popup problem. When a popup is opened, I want all other popups to close immediatly. (except for its self and it's child popups) Here is my code: code: <!DOCTYPE HTML PUBLIC...
1
by: Moe Sisko | last post by:
Using : ASP.NET 2.0, IE 7. This is a strange problem with popups not working in IE to remote sites, even though popups are allowed in IE. To reproduce, create web site with two pages,...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.