Hind Forsum Hind Forsum - 2 months ago 8
Linux Question

How to make vim high-light as python when editing scons files?

I'm using vim to edit SConstruct files of scons, I want to make vim high-light as python grammar automatically. How to do that?

How to associate file name of 'SConstruct' with 'Python' in vimrc?

Thanks

Answer

Add this to your vimrc:

au BufRead,BufNewFile SContruct set filetype=python
Comments