Per Eric Z. Beard: Vim set to python works Ok in a pinch. {{{ au BufNewFile,BufEnter *.cobra set noexpandtab ts=4 sw=4 filetype=python }}} For more native support try [http://bitbucket.org/webnov8/cobra-on-vim/ Cobra on Vim]. This includes a ftdetect, indent, and syntax file.