You are not logged in.

#1 2005-04-23 19:48:23

shiner_man
Member
From: Atlantic City, NJ
Registered: 2005-04-07
Posts: 29
Website

vim and python

Well, I can't figure out how to get vim to do color with the python scripts.  Where does the python.vim file go?

I do have color by the way.  Opening a .html document gives full color coding on the html.  I think I don't have this python.vim file in the correct place.  I put it in both:

/usr/share/vim/python.vim
/usr/share/vim/syntax/python.vim

still no highlighting.

Any help?

Offline

#2 2005-04-24 09:02:06

arooaroo
Member
From: London, UK
Registered: 2005-01-13
Posts: 1,268
Website

Re: vim and python

Do your python scripts end with .py? Alternatively, always start your script with:

#!/usr/bin/python

I find that sufficient for vim to correctly determine that my script is in python.

Offline

#3 2005-04-24 14:13:42

shiner_man
Member
From: Atlantic City, NJ
Registered: 2005-04-07
Posts: 29
Website

Re: vim and python

arooaroo wrote:

Do your python scripts end with .py? Alternatively, always start your script with:

#!/usr/bin/python

I find that sufficient for vim to correctly determine that my script is in python.

Well that is not sufficient for me for some reason.  I have both of those and it doesn't work.

Offline

#4 2005-04-24 17:09:55

Kern
Member
From: UK
Registered: 2005-02-09
Posts: 464

Re: vim and python

try  opening  a .py document in vim,  and type

:syntax on 

or

:so $VIMRUNTIME/syntax/python.vim

then

:syntax on 

?
i dont get colours on anything anyways, but this certainly gave me python syntax highlighting.

Offline

Board footer

Powered by FluxBB