vim indent file question

Bevan Bennett bevan at fulcrummicro.com
Mon Feb 9 23:13:09 UTC 2004


Yohann Desquerre wrote:

>hi all,
>
>
>I 'd to configure vim to work well with python, i find a indent-file in
>/usr/share/vim/vim6.2/indent but i don't how to make it work...
>
>I would like to have the specific syntactic colouring and indentention
>for python
>  
>

 From inside vim, try ":set syntax" and see what it says.
When I open any *.py file it automatically sets to "syntax=python".
If it's not setting the syntax mode appropriately, try ":set 
syntax=python" explicitly.

You may also need to do ":syntax on".
See ":help syntax" from within vim for more detailed instructions.





More information about the users mailing list