Running python scripts from Vim

2006-07-28 Thread Preben Randhol
Hi

I'm looking for a vimscript where I can easily test out my Python code
by pressing say F9 or some other function key. I have used the
runscript.vim script (http://www.vim.org/scripts/script.php%3Fscript_id=127)

This script has some nice things, but the main problem is that when an
error happens in the script it is not caught. I would like to use
quickfix and :copen to get the errors and to be able to jump to them.

Does anything like this exist?

Thanks in advance

Preben


Re: Running python scripts from Vim

2006-07-28 Thread Preben Randhol
Marc Weber [EMAIL PROTECTED] wrote on 28/07/2006 (13:27) :
 I can't see your problem. Why not just create some mappings:
 compiler python
 set makeprg=python
 :make mypyfile
 or :make % ?
 
 What's wrong with this?

lack of a propper efm. But I just managed to fix an old python compiler
script which was buggy on windows. (Found some info in an perl compiler
script) It also has and efm which looks to
be reasonable for now. I'll have a look at it in the weekend. Now it is only to
make a ftplugin with the functionality of runscript so that one can set
which file is the master file to run through python.

A python vimball would be very nice... (Like the Ada vimball) 

I have now tried several vim scripts for python to set up vim as a good
python IDE. It has taken some time due to that not all scripts are well
documented and there are some old buggy scripts that makes other scripts
not work. But now it really starts to shape up :-)

Thanks

Preben


Re: Running python scripts from Vim

2006-07-28 Thread Tom Purl
On Fri, Jul 28, 2006 at 01:46:46PM +0200, Preben Randhol wrote:
 I have now tried several vim scripts for python to set up vim as a good
 python IDE. It has taken some time due to that not all scripts are well
 documented and there are some old buggy scripts that makes other scripts
 not work. But now it really starts to shape up :-)

If you have some time, could you please share this recipe with the
list?

Thanks!

Tom Purl


Re: Running python scripts from Vim

2006-07-28 Thread James Vega
On Fri, Jul 28, 2006 at 01:46:46PM +0200, Preben Randhol wrote:
 I have now tried several vim scripts for python to set up vim as a good
 python IDE. It has taken some time due to that not all scripts are well
 documented and there are some old buggy scripts that makes other scripts
 not work. But now it really starts to shape up :-)

You might be interested in trying out PIDA (http://pida.berlios.de/).

James
-- 
GPG Key: 1024D/61326D40 2003-09-02 James Vega [EMAIL PROTECTED]


signature.asc
Description: Digital signature