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
"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
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
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
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
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 <<
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