[Maxima] vi and Maxima syntax highlighting?
robert.dodier at gmail.com
Fri Jan 25 09:27:59 CST 2008
On 1/25/08, Bart Vandewoestyne <Bart.Vandewoestyne at telenet.be> wrote:
> However, I have the impression that the syntax highlighting is not really good
> or working... most of the code is syntax hightlighted in lightblue in my setup.
The light blue stuff is vim's default colorization.
Seems like an odd choice, but oh well.
> Does anybody know if it is possible to get better syntax highlighting for
> Maxima in vi? And what is the 'official' extension to give to a Maxima script?
I believe there is a maxima.vim syntax colorization file in vim 7.
If not it should be available from the vim web site, and if that fails,
I'll email mine to you.
Most of the scripts in the Maxima distribution are named .mac.
A few are named .dem (demonstration).
Here is my ~/.vim/filetype.vim which tells vim to colorize those files:
au! BufRead,BufNewFile *.mac setfiletype maxima
au! BufRead,BufNewFile *.dem setfiletype maxima
Vim doesn't associate .mac with Maxima by default because .mac
was already used by some assembler language (if I recall correctly).
Hope this helps,
More information about the Maxima