You are not logged in.
Pages: 1
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
Do your python scripts end with .py? Alternatively, always start your script with:
#!/usr/bin/pythonI find that sufficient for vim to correctly determine that my script is in python.
Offline
Do your python scripts end with .py? Alternatively, always start your script with:
#!/usr/bin/pythonI 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
try opening a .py document in vim, and type
:syntax on or
:so $VIMRUNTIME/syntax/python.vimthen
:syntax on ?
i dont get colours on anything anyways, but this certainly gave me python syntax highlighting.
Offline
Pages: 1