RE: Python Script Execution Support in ViM

2006-08-24 Thread Chuck Mason
, Barry [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 5:39 PM To: vim@vim.org Subject: Python Script Execution Support in ViM Greetings: This is my first posting to this list. I have used ViM off and on for many years. For the past year I have been using it exclusively to write

Re: Python Script Execution Support in ViM

2006-08-24 Thread A.J.Mechelynck
Chuck Mason wrote: Try this the function below. I'm a very novice vim programmer so forgive me if there's an easier way to do this. However, what's below seemed to work for me. Chuck function! ExecuteCurBufAsPython() let buffer = getline(1, line($)) let newbuf =

Re: Python Version Trouble with ViM 7.0 (Was: Python Script Execution Support in ViM)

2006-08-24 Thread A.J.Mechelynck
Carroll, Barry wrote: -Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 7:12 PM To: Carroll, Barry Cc: vim@vim.org Subject: Re: Python Script Execution Support in ViM Carroll, Barry wrote: Greetings: This is my first posting

Python Version Trouble with ViM 7.0 (Was: Python Script Execution Support in ViM)

2006-08-24 Thread Carroll, Barry
-Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 23, 2006 7:12 PM To: Carroll, Barry Cc: vim@vim.org Subject: Re: Python Script Execution Support in ViM Carroll, Barry wrote: Greetings: This is my first posting to this list

Python Script Execution Support in ViM

2006-08-23 Thread Carroll, Barry
Greetings: This is my first posting to this list. I have used ViM off and on for many years. For the past year I have been using it exclusively to write Python programs for the Windows (2000/XP) and Linux (Fedora) platforms. I am using version 6.3 with python/dyn enabled on Windows and

Re: Python Script Execution Support in ViM

2006-08-23 Thread Peter Hodge
Hello Barry, For PHP, I use a command like ':!php %' (or ':!php %' for windows) to run a file through PHP. From there, it's not hard to set up a mapping ':nnoremap F5 :!python %' or a menu command ':nnoremenu Python.Run :!python %', or an auto-command to run the script when it is saved

Re: Python Script Execution Support in ViM

2006-08-23 Thread A.J.Mechelynck
Carroll, Barry wrote: Greetings: This is my first posting to this list. I have used ViM off and on for many years. For the past year I have been using it exclusively to write Python programs for the Windows (2000/XP) and Linux (Fedora) platforms. I am using version 6.3 with python/dyn