Aug 30, 2012

VIM for Mathematica

The very first thing to do is a Mathematica Syntax File : Syntax highlighting file for Mathematica code and a Mathematica Indent File : Indentation file for Mathematica code.

There is one more trouble, both Mathematica and Matlab use .m file extensions, so if you are editing Mathematica .m files, you need to either manually :set ft=mma or edit your filetype.vim file.
au! BufRead,BufNewFile *.m set ft=mma sw=2

No comments:

Post a Comment