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