Hind Forsum Hind Forsum - 1 year ago 121
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?


Answer Source

Add this to your vimrc:

au BufRead,BufNewFile SContruct set filetype=python
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download