Re: Vim scripting with python

2007-02-13 Thread [EMAIL PROTECTED]
J. Clifford Dyer wrote: > Stuart D. Gathman wrote: > > On Sat, 03 Feb 2007 05:02:54 -0800, Tool69 wrote: > > > >> Does anyone have any advice, and more genraly how to script Vim with > >> Python ? > > > > :py import sys > > :py print sys.version > > :help :py > > > >> I know I can put some python f

Re: Vim scripting with python

2007-02-12 Thread Ben Finney
"J. Clifford Dyer" <[EMAIL PROTECTED]> writes: > Which versions of vim is this valid for? I tried ":py print 'Hello'", > and got "E319: Sorry, the command is not available in this version" The ability of Vim to run Python commands is one of many optional features that can be enabled or disabled

Re: Vim scripting with python

2007-02-12 Thread Neil Cerutti
On 2007-02-12, J. Clifford Dyer <[EMAIL PROTECTED]> wrote: > Stuart D. Gathman wrote: >> On Sat, 03 Feb 2007 05:02:54 -0800, Tool69 wrote: >> Use :py inside your vimrc - don't run python externally. > > Which versions of vim is this valid for? I tried ":py print > 'Hello'", and got "E319: Sorry, t

Re: Vim scripting with python

2007-02-12 Thread J. Clifford Dyer
Stuart D. Gathman wrote: > On Sat, 03 Feb 2007 05:02:54 -0800, Tool69 wrote: > >> Does anyone have any advice, and more genraly how to script Vim with >> Python ? > > :py import sys > :py print sys.version > :help :py > >> I know I can put some python functions inside my vimrc file like >> this

Re: Vim scripting with python

2007-02-04 Thread Tool69
Thanks Stuart, I'll take a look at it. Another thing : Is there any way to made some modification de the python.syntax file to highlight the functions call, i.e : os.popen(...) ---> "popen(...)" will be highlighted. Cheers. -- http://mail.python.org/mailman/listinfo/python-list

Re: Vim scripting with python

2007-02-03 Thread Stuart D. Gathman
On Sat, 03 Feb 2007 05:02:54 -0800, Tool69 wrote: > Does anyone have any advice, and more genraly how to script Vim with > Python ? :py import sys :py print sys.version :help :py > I know I can put some python functions inside my vimrc file like > this : > > function! My_function() > python <<

Vim scripting with python

2007-02-03 Thread Tool69
Hi, I saw several old posts speaking of vim scripting in Python. This one in particular : http://www.velocityreviews.com/forums/t351303-re-pythonising-the-vim-eg-syntax-popups-gt-vimpst.html But I didn't find where to put this "vimrc.py" on my Windows machine. My "normal" _vimrc file is in C:\Doc