Skip to content
Advertisement

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

Advertisement

Answer

Add this to your vimrc:

au BufRead,BufNewFile SConstruct set filetype=python
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement