G code M code CNC syntax for VI & EMACS

2.1k views Asked by At

I want to use Vim and EMACS for CNC, G codes & M codes.

Is there any syntax or modes for Vim or EMACS for working with this type of code?

1

There are 1 answers

0
David Brown On BEST ANSWER

Some quick searching led me to this syntax highlighting file for vim and this one for emacs. For vim the ngc.vim file needs to put in the syntax directory of your runtimepath. For the emacs one it seems like you just need to copy that code into your .emacs file.