Search code examples
vimemacsvicnc

G code M code CNC syntax for VI & EMACS


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?


Solution

  • 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.