On 08/22/2012 04:52 AM, Peng Yu wrote:
Hi,

I followed the following tip to set up vim for sage. But I don't see
syntax highlight nor correctly auto indentation. Has anybody
successfully configured vim for sage?

http://wiki.sagemath.org/Tips

Vim filetypes To get Vim to use Python syntax highlighting,
indentation, and so on for .sage files, put the following in
$VIM/filetype.vim:

augroup filetypedetect
   au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python
augroup END


What I use is:

autocmd BufRead,BufNewFile,BufWritePost *.sage set filetype=python
autocmd BufRead,BufNewFile,BufWritePost *.spyx,*.pyx set filetype=python.c

--
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.


Reply via email to